From 9a1270c3d82ef08e0adb14ad95bde9ddc78e7119 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sat, 4 Feb 2023 21:53:58 +0330 Subject: [PATCH] docs: #327 trying to fix 404 error --- GanjooRazor/Areas/User/Pages/Editor.cshtml | 10 +++++++--- .../{SuggestNewVerses.cshtml => EditorAdd.cshtml} | 2 +- ...{SuggestNewVerses.cshtml.cs => EditorAdd.cshtml.cs} | 4 ++-- GanjooRazor/GanjooRazor.csproj | 9 ++------- 4 files changed, 12 insertions(+), 13 deletions(-) rename GanjooRazor/Areas/User/Pages/{SuggestNewVerses.cshtml => EditorAdd.cshtml} (98%) rename GanjooRazor/Areas/User/Pages/{SuggestNewVerses.cshtml.cs => EditorAdd.cshtml.cs} (97%) diff --git a/GanjooRazor/Areas/User/Pages/Editor.cshtml b/GanjooRazor/Areas/User/Pages/Editor.cshtml index 3544aecc..308a64f5 100644 --- a/GanjooRazor/Areas/User/Pages/Editor.cshtml +++ b/GanjooRazor/Areas/User/Pages/Editor.cshtml @@ -23,7 +23,7 @@ alert('انجام شد.'); } - + function savePoemCorrections(id, verseCount) { var verseOrderText = []; @@ -148,8 +148,8 @@ }); } - function savemeta(id){ - $('#saving').text('در حال ذخیره ...'); + function savemeta(id) { + $('#saving').text('در حال ذخیره ...'); var url = '?handler=SaveMeta'; @@ -545,6 +545,10 @@ else } + + اضافه کردن مصرع‌های جاافتاده + + @if (Model.CanEdit && !Model.ShowAdminOps) { diff --git a/GanjooRazor/Areas/User/Pages/SuggestNewVerses.cshtml b/GanjooRazor/Areas/User/Pages/EditorAdd.cshtml similarity index 98% rename from GanjooRazor/Areas/User/Pages/SuggestNewVerses.cshtml rename to GanjooRazor/Areas/User/Pages/EditorAdd.cshtml index 405f10b0..538a5aa2 100644 --- a/GanjooRazor/Areas/User/Pages/SuggestNewVerses.cshtml +++ b/GanjooRazor/Areas/User/Pages/EditorAdd.cshtml @@ -1,5 +1,5 @@ @page -@model GanjooRazor.Areas.User.Pages.SuggestNewVersesModel +@model GanjooRazor.Areas.User.Pages.EditorAddModel @using DNTPersianUtils.Core @{ Layout = null; diff --git a/GanjooRazor/Areas/User/Pages/SuggestNewVerses.cshtml.cs b/GanjooRazor/Areas/User/Pages/EditorAdd.cshtml.cs similarity index 97% rename from GanjooRazor/Areas/User/Pages/SuggestNewVerses.cshtml.cs rename to GanjooRazor/Areas/User/Pages/EditorAdd.cshtml.cs index f3dfa896..ed195713 100644 --- a/GanjooRazor/Areas/User/Pages/SuggestNewVerses.cshtml.cs +++ b/GanjooRazor/Areas/User/Pages/EditorAdd.cshtml.cs @@ -13,7 +13,7 @@ using System; namespace GanjooRazor.Areas.User.Pages { [IgnoreAntiforgeryToken(Order = 1001)] - public class SuggestNewVersesModel : PageModel + public class EditorAddModel : PageModel { /// /// HttpClient instance @@ -30,7 +30,7 @@ namespace GanjooRazor.Areas.User.Pages /// /// /// - public SuggestNewVersesModel(HttpClient httpClient, IConfiguration configuration) + public EditorAddModel(HttpClient httpClient, IConfiguration configuration) { _httpClient = httpClient; Configuration = configuration; diff --git a/GanjooRazor/GanjooRazor.csproj b/GanjooRazor/GanjooRazor.csproj index 9f88eeb1..acdfcf7b 100644 --- a/GanjooRazor/GanjooRazor.csproj +++ b/GanjooRazor/GanjooRazor.csproj @@ -8,7 +8,7 @@ - + @@ -33,16 +33,11 @@ <_ContentIncludedByDefault Remove="Areas\User\Pages\SectionEdits.cshtml" /> - <_ContentIncludedByDefault Remove="Areas\User\Pages\SuggestNewVerses.cshtml" /> - - - - - +