From 8f2261e1cb7d8d62285356c2404be354e8aeae80 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Mon, 20 Jul 2026 13:33:44 +0330 Subject: [PATCH] fixing ganjoo.net/vazn page --- GanjooRazor/Pages/GanjoorPage.cshtml.cs | 2 ++ .../PageTypes/_GenericPagePartial.cshtml | 22 ++++++++++++++++++ .../PageTypes/_PoemPagePartial.cshtml | 23 ++----------------- .../Pages/Shared/_InlineLoginPartial.cshtml | 2 +- 4 files changed, 27 insertions(+), 22 deletions(-) diff --git a/GanjooRazor/Pages/GanjoorPage.cshtml.cs b/GanjooRazor/Pages/GanjoorPage.cshtml.cs index 63f5fb51..385294be 100644 --- a/GanjooRazor/Pages/GanjoorPage.cshtml.cs +++ b/GanjooRazor/Pages/GanjoorPage.cshtml.cs @@ -55,6 +55,8 @@ namespace GanjooRazor.Pages public bool ReadOnlyMode => GetConfigFlag("ReadOnlyMode"); + public const int GanjoorSlashVaznPageId = 39401; + /// /// constructor /// diff --git a/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_GenericPagePartial.cshtml b/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_GenericPagePartial.cshtml index 3f9e7a4d..277b2d9a 100644 --- a/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_GenericPagePartial.cshtml +++ b/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_GenericPagePartial.cshtml @@ -56,7 +56,29 @@ } + @if (Model.GanjoorPage.Id == GanjoorPageModel.GanjoorSlashVaznPageId) + { +
+ + } @Html.Raw(Model.GanjoorPage.HtmlText) + + @if (Model.GanjoorPage.Id == GanjoorPageModel.GanjoorSlashVaznPageId) + { +
+ @if (Model.CategoryWordsCounts != null) + { + + } +
+ } @* Navigation *@ diff --git a/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml b/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml index d2430736..73d5dd76 100644 --- a/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml +++ b/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml @@ -176,30 +176,11 @@ - @if (Model.GanjoorPage.Id == 39401) - { -
- - } + @Html.Raw(Model.GanjoorPage.HtmlText) - @if (Model.GanjoorPage.Id == 39401) - { -
- @if (Model.CategoryWordsCounts != null) - { - - } -
- } + @* Navigation *@ diff --git a/GanjooRazor/Pages/Shared/_InlineLoginPartial.cshtml b/GanjooRazor/Pages/Shared/_InlineLoginPartial.cshtml index acafb6c1..20d96eb7 100644 --- a/GanjooRazor/Pages/Shared/_InlineLoginPartial.cshtml +++ b/GanjooRazor/Pages/Shared/_InlineLoginPartial.cshtml @@ -12,7 +12,7 @@ - @if (Model.GanjoorPage != null && ((Model.GanjoorPage.PoetOrCat != null && Model.GanjoorPage.SecondPoet == null) || (Model.GanjoorPage.Id == 39401))) + @if (Model.GanjoorPage != null && ((Model.GanjoorPage.PoetOrCat != null && Model.GanjoorPage.SecondPoet == null) || (Model.GanjoorPage.Id == GanjoorPageModel.GanjoorSlashVaznPageId))) {