Skip to content

Commit

Permalink
Update Content.cshtml
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 4, 2023
1 parent e7096a6 commit e1ffc2a
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions src/Moonglade.Web/Pages/Settings/Content.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,6 @@
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="col-auto">
<i class="bi-sort-numeric-down settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@settings.CommentOrder" class="me-4"></label>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-check-inline">
@Html.RadioButtonFor(model => settings.CommentOrder, CommentOrder.OldToNew, new { id = CommentOrder.OldToNew.ToString(), @class = "form-check-input" })
<label class="form-check-label" for="@CommentOrder.OldToNew">@SharedLocalizer["Old to new"]</label>
</div>
<div class="form-check form-check-inline">
@Html.RadioButtonFor(model => settings.CommentOrder, CommentOrder.NewToOld, new { id = CommentOrder.NewToOld.ToString(), @class = "form-check-input" })
<label class="form-check-label" for="@CommentOrder.NewToOld">@SharedLocalizer["New to old"]</label>
</div>
</div>
</div>


<div class="row g-3 align-items-center settings-entry mb-4">
<div class="col-auto">
<i class="settings-entry-icon bi-hourglass-split"></i>
Expand All @@ -112,6 +92,25 @@
</div>

<div class="comment-settings-built-in">

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="col-auto">
<i class="bi-sort-numeric-down settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@settings.CommentOrder" class="me-4"></label>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-check-inline">
@Html.RadioButtonFor(model => settings.CommentOrder, CommentOrder.OldToNew, new { id = CommentOrder.OldToNew.ToString(), @class = "form-check-input" })
<label class="form-check-label" for="@CommentOrder.OldToNew">@SharedLocalizer["Old to new"]</label>
</div>
<div class="form-check form-check-inline">
@Html.RadioButtonFor(model => settings.CommentOrder, CommentOrder.NewToOld, new { id = CommentOrder.NewToOld.ToString(), @class = "form-check-input" })
<label class="form-check-label" for="@CommentOrder.NewToOld">@SharedLocalizer["New to old"]</label>
</div>
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="col-auto">
Expand Down

0 comments on commit e1ffc2a

Please sign in to comment.