diff --git a/GanjooRazor/Areas/User/Pages/CatEdits.cshtml b/GanjooRazor/Areas/User/Pages/CatEdits.cshtml index 7404a148..87126eae 100644 --- a/GanjooRazor/Areas/User/Pages/CatEdits.cshtml +++ b/GanjooRazor/Areas/User/Pages/CatEdits.cshtml @@ -1,4 +1,4 @@ -@page +@page @model GanjooRazor.Areas.User.Pages.CatEditsModel @using RMuseum.Models.Ganjoor @using RMuseum.Services.Implementation @@ -6,55 +6,33 @@ Layout = "_UserPanelLayout"; ViewData["Title"] = "ویرایش‌های بخشهای من"; await GanjooRazor.Utils.GanjoorSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData); - string color = "gray"; } -

@ViewData["Title"]

+
+

@ViewData["Title"]

+
@if (Model.LastError != "") { -

@Model.LastError

+
@Model.LastError
} else { - if (@Model.CanEdit) { -
-

- ویرایش‌های بخش‌های همه -

+
+ ویرایش‌های بخش‌های همه
} + + @if (Model.Corrections.Count == 0) { -

- شما هنوز هیچ ویرایشی در بخش‌های انجام نداده‌اید. -

+ } - -

- @foreach (var paginationLink in Model.PaginationLinks) - { - if (!string.IsNullOrEmpty(paginationLink.Url)) - { - @paginationLink.Name - } - else - { - @paginationLink.Name - } - } -

- @foreach (var correction in Model.Corrections) { - if (color == "gray") - color = "lightsteelblue"; - else - color = "gray"; - -
+
@if (Model.AllUsersEdits) @@ -87,19 +65,7 @@ else

@correction.Description

@if (!string.IsNullOrEmpty(correction.ReviewNote)) @@ -112,8 +78,6 @@ else } } - - @if (!string.IsNullOrEmpty(correction.Note)) { @@ -134,31 +98,9 @@ else } -
- @if (correction.Result == CorrectionReviewResult.NotReviewed) - { -

@CorrectionReviewResultConvertor.GetString(correction.Result)

- } - else - @if (correction.Result == CorrectionReviewResult.Approved) - { -

@CorrectionReviewResultConvertor.GetString(correction.Result)

- } - else - { -

@CorrectionReviewResultConvertor.GetString(correction.Result)

- } +
-
- - -
} -

- @foreach (var paginationLink in Model.PaginationLinks) - { - if (!string.IsNullOrEmpty(paginationLink.Url)) - { - @paginationLink.Name - } - else - { - @paginationLink.Name - } - } -

- - - - - -} \ No newline at end of file + +} diff --git a/GanjooRazor/Areas/User/Pages/Edits.cshtml b/GanjooRazor/Areas/User/Pages/Edits.cshtml index cae77b3e..5e558806 100644 --- a/GanjooRazor/Areas/User/Pages/Edits.cshtml +++ b/GanjooRazor/Areas/User/Pages/Edits.cshtml @@ -6,12 +6,13 @@ Layout = "_UserPanelLayout"; ViewData["Title"] = "ویرایش‌های من"; await GanjooRazor.Utils.GanjoorSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData); - string color = "gray"; } -

@ViewData["Title"]

+
+

@ViewData["Title"]

+
@if (Model.LastError != "") { -

@Model.LastError

+
@Model.LastError
} else { @@ -21,7 +22,7 @@ else @if (Model.Profile != null) { -
+

@Model.Profile.NickName @@ -38,22 +39,19 @@ else @Html.Raw(Model.Profile.Bio) }

-
} else { -
-

- ویرایش‌های همه -

+ }