+ {
+#if DEBUG
+ "Testers"
+#else
+ "All"
+#endif
+ },
+ Headings =
+ {
+ {LanguageCodes.English, "A new build has been added to BuildFeed!"}
+ },
+ Contents =
+ {
+ {LanguageCodes.English, b.AlternateBuildString}
+ },
+ Url = $"https://buildfeed.net{Url.Action(nameof(ViewBuild), new { id = b.Id })}?utm_source=notification&utm_campaign=new_build"
+ });
+ }
+
+ success.Add(b);
+ }
+ catch (Exception)
+ {
+ failed.Add(line);
+ }
+ }
+ }
+
+ ViewBag.Results = success.ToArray();
+ return View(new BulkAddition
+ {
+ Builds = string.Join("\r\n", failed),
+ SendNotifications = notify
+ });
}
[Route("edit/{id}/")]
diff --git a/BuildFeed/Views/front/AddBulk.cshtml b/BuildFeed/Views/front/AddBulk.cshtml
index 7126c76..6bcca49 100644
--- a/BuildFeed/Views/front/AddBulk.cshtml
+++ b/BuildFeed/Views/front/AddBulk.cshtml
@@ -1,4 +1,6 @@
-@model BuildFeed.Model.View.AddBulk
+@using BuildFeed.Controllers
+@using BuildFeed.Model
+@model BuildFeed.Model.View.BulkAddition
@{
ViewBag.Title = $"{VariantTerms.Common_AddBulk} | {InvariantTerms.SiteName}";
@@ -6,10 +8,28 @@
Add builds in bulk
+@if (ViewBag.Results != null)
+{
+ These builds have been added successfully.
+
+}
+
+Add multiple builds below by typing the full build string out each on one line. All builds added via this page will have a Source Type of "Private Leak".
+
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
- @Html.ValidationSummary(true)