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))) {