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"; } -
- شما هنوز هیچ ویرایشی در بخشهای انجام ندادهاید. -
+- @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 (correction.Result == CorrectionReviewResult.NotReviewed)
- {
- @CorrectionReviewResultConvertor.GetString(correction.Result) - } - else - @if (correction.Result == CorrectionReviewResult.Approved) - { -@CorrectionReviewResultConvertor.GetString(correction.Result) - } - else - { -@CorrectionReviewResultConvertor.GetString(correction.Result) - } + |
@if (!string.IsNullOrEmpty(correction.ReviewNote))
@@ -112,8 +78,6 @@ else
}
}
-
-
@if (!string.IsNullOrEmpty(correction.Note))
{
- @foreach (var paginationLink in Model.PaginationLinks) - { - if (!string.IsNullOrEmpty(paginationLink.Url)) - { - @paginationLink.Name - } - else - { - @paginationLink.Name - } - } -
- - - - - -} \ No newline at end of file +@Model.Profile.NickName @@ -38,22 +39,19 @@ else @Html.Raw(Model.Profile.Bio) }
- ویرایشهای همه -
+ }