diff --git a/BuildFeed/Views/front/viewBuild.cshtml b/BuildFeed/Views/front/viewBuild.cshtml index 5e30e55..11b5e0f 100644 --- a/BuildFeed/Views/front/viewBuild.cshtml +++ b/BuildFeed/Views/front/viewBuild.cshtml @@ -4,131 +4,132 @@ @model BuildFeed.Model.Build @{ - ViewBag.Title = $"{Model.FullBuildString} | {InvariantTerms.SiteName}"; + ViewBag.Title = $"{Model.FullBuildString} | {InvariantTerms.SiteName}"; } @section head { - - - - - - - - - @{ - string metaDesc = Model.BuildTime.HasValue - ? string.Format(VariantTerms.Meta_BuildDate, Model.Number, Model.Lab, Model.BuildTime.Value.ToLongDateWithoutDay()) - : string.Format(VariantTerms.Meta_BuildNoDate, Model.Number, Model.Lab); - } - - - + + + + + + + @{ + string metaDesc = Model.BuildTime.HasValue + ? string.Format(VariantTerms.Meta_BuildDate, Model.Number, Model.Lab, Model.BuildTime.Value.ToLongDateWithoutDay()) + : string.Format(VariantTerms.Meta_BuildNoDate, Model.Number, Model.Lab); + } + + + }

@Model.AlternateBuildString

@VariantTerms.Front_Details

-
- @Html.LabelFor(model => model.MajorVersion) -

@Html.DisplayFor(model => model.MajorVersion)

-
-
- @Html.LabelFor(model => model.MinorVersion) -

@Html.DisplayFor(model => model.MinorVersion)

-
-
- @Html.LabelFor(model => model.Number) -

@Html.DisplayFor(model => model.Number)

-
-
- @Html.LabelFor(model => model.Revision) -

- @if (Model.Revision.HasValue) - { - @Html.DisplayFor(model => model.Revision) - } - else - { - @("-") - } -

-
+
+ @Html.LabelFor(model => model.MajorVersion) +

@Html.DisplayFor(model => model.MajorVersion)

+
+
+ @Html.LabelFor(model => model.MinorVersion) +

@Html.DisplayFor(model => model.MinorVersion)

+
+
+ @Html.LabelFor(model => model.Number) +

@Html.DisplayFor(model => model.Number)

+
+
+ @Html.LabelFor(model => model.Revision) +

+ @if (Model.Revision.HasValue) + { + @Html.DisplayFor(model => model.Revision) + } + else + { + @("-") + } +

+
-
- @Html.LabelFor(model => model.Lab) -

- @if (string.IsNullOrEmpty(Model.Lab)) - { - @VariantTerms.Front_NoLabString - } - else - { - @Model.Lab
- -   - @string.Format(VariantTerms.Front_MoreFromLab, Model.Lab) - - } -

-
-
- @Html.LabelFor(model => model.BuildTime) -

- @if (Model.BuildTime.HasValue) - { - -
- -   - @string.Format(VariantTerms.Front_MoreFromYear, Model.BuildTime.Value.Year) - - } -

-
+
+ @Html.LabelFor(model => model.Lab) +

+ @if (string.IsNullOrEmpty(Model.Lab)) + { + @VariantTerms.Front_NoLabString + } + else + { + @Model.Lab
+ +   + @string.Format(VariantTerms.Front_MoreFromLab, Model.Lab) + + } +

+
+
+ @Html.LabelFor(model => model.BuildTime) +

+ @if (Model.BuildTime.HasValue) + { + +
+ +   + @string.Format(VariantTerms.Front_MoreFromYear, Model.BuildTime.Value.Year) + + } +

+
-
- @Html.LabelFor(model => model.SourceType) - -
-
- @if (Model.LeakDate.HasValue) - { - @Html.LabelFor(model => model.LeakDate) -
- -
- } -
+
+ @Html.LabelFor(model => model.SourceType) + +
+
+ @if (Model.LeakDate.HasValue) + { + @Html.LabelFor(model => model.LeakDate) +
+ +
+ } +

@if (!string.IsNullOrWhiteSpace(Model.SourceDetailsFiltered)) { -

@Html.DisplayNameFor(model => model.SourceDetails)

-
@Html.Raw(Model.SourceDetailsFiltered)
-
+

@Html.DisplayNameFor(model => model.SourceDetails)

+
@Html.Raw(Model.SourceDetailsFiltered)
+
}

@VariantTerms.Front_Share

@@ -136,57 +137,57 @@ @if (User.Identity.IsAuthenticated) { -

@VariantTerms.Front_EditorActions

-

- @Html.ActionLink(VariantTerms.Front_Edit, nameof(FrontController.EditBuild), new - { - id = Model.Id - }, new - { - @class = "button edit-button" - }) - - @if (Roles.IsUserInRole("Administrators")) - { - @Html.ActionLink(VariantTerms.Front_Delete, nameof(FrontController.DeleteBuild), new - { +

@VariantTerms.Front_EditorActions

+

+ @Html.ActionLink(VariantTerms.Front_Edit, nameof(FrontController.EditBuild), new + { id = Model.Id - }, new - { - @class = "button delete-button" - }) - } -

+ }, new + { + @class = "button edit-button" + }) + + @if (Roles.IsUserInRole("Administrators")) + { + @Html.ActionLink(VariantTerms.Front_Delete, nameof(FrontController.DeleteBuild), new + { + id = Model.Id + }, new + { + @class = "button delete-button" + }) + } +

}
-

@VariantTerms.Front_Comments

-
- - + (function() + { + var dsq = document.createElement('script'); + dsq.type = 'text/javascript'; + dsq.async = true; + dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]) + .appendChild(dsq); + })(); + +

- - @VariantTerms.Front_ReturnToOverview - -   - @VariantTerms.Front_ReturnToListing + + @VariantTerms.Front_ReturnToOverview + +   + @VariantTerms.Front_ReturnToListing

\ No newline at end of file diff --git a/BuildFeed/Views/front/viewGroup.cshtml b/BuildFeed/Views/front/viewGroup.cshtml index f92dc05..1f500c0 100644 --- a/BuildFeed/Views/front/viewGroup.cshtml +++ b/BuildFeed/Views/front/viewGroup.cshtml @@ -13,7 +13,7 @@ @foreach (Build build in Model.Item2) {
-

+

-

+

-

+

-

+

-

+

- + + - + + + + + @@ -39,7 +44,6 @@ @ViewBag.Title @RenderSection("head", false) -