From 2f1e7110748c0e94809a7fcfd05522cd02a2a9e8 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Mon, 20 Jul 2026 13:42:26 +0330 Subject: [PATCH] refactoring --- GanjooRazor/Pages/GanjoorPage.cshtml | 28 ------------------- .../PageTypes/_GenericPagePartial.cshtml | 17 ++++++++++- .../PageTypes/_PoemPagePartial.cshtml | 12 +++++++- 3 files changed, 27 insertions(+), 30 deletions(-) diff --git a/GanjooRazor/Pages/GanjoorPage.cshtml b/GanjooRazor/Pages/GanjoorPage.cshtml index f3349e2d..a178d900 100644 --- a/GanjooRazor/Pages/GanjoorPage.cshtml +++ b/GanjooRazor/Pages/GanjoorPage.cshtml @@ -233,34 +233,6 @@ else if (Model.ReadOnlyMode) @Html.Raw(ViewData["TrackingScript"]) } -@if (Model.LoggedIn) -{ - if (Model.IsPoemPage) - { - if (Model.KeepHistory) - { - - } - } - - @if (Model.GanjoorPage.Id == GanjoorPageModel.GanjoorSlashVaznPageId) - { - - } -} - +} \ No newline at end of file diff --git a/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml b/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml index 73d5dd76..59732b83 100644 --- a/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml +++ b/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml @@ -1052,4 +1052,14 @@ } }); -} \ No newline at end of file +} + +@if (Model.LoggedIn) +{ + if (Model.KeepHistory) + { + + } +}