fixing ganjoo.net/vazn page

This commit is contained in:
Hamid Reza Mohammadi 2026-07-20 13:33:44 +03:30
parent 513b10df9e
commit 8f2261e1cb
4 changed files with 27 additions and 22 deletions

View File

@ -55,6 +55,8 @@ namespace GanjooRazor.Pages
public bool ReadOnlyMode => GetConfigFlag("ReadOnlyMode");
public const int GanjoorSlashVaznPageId = 39401;
/// <summary>
/// constructor
/// </summary>

View File

@ -56,7 +56,29 @@
}
<partial name="~/Pages/Partials/GanjoorPage/_InlinePageUtilsPartial.cshtml" model="Model" />
@if (Model.GanjoorPage.Id == GanjoorPageModel.GanjoorSlashVaznPageId)
{
<div class="poempretab" id="pretab"></div>
<div class="poemtab" id="tab-items">
<div class="poemtablinks active"><a href="#poets-stats">سخنوران</a></div>
<div class="poemtablinks"><a href="#langs-stats">زبان‌ها</a></div>
<div class="poemtablinks"><a href="#formats-stats">قالب‌ها</a></div>
<div class="poemtablinks"><a href="#rhyhtms-stats">وزن‌ها</a></div>
<div class="poemtablinks"><a href="#couplets-stats">تعداد ابیات</a></div>
<div class="poemtablinks"><a href="#wordcounts-placeholder">بسامد واژگان</a></div>
</div>
}
@Html.Raw(Model.GanjoorPage.HtmlText)
@if (Model.GanjoorPage.Id == GanjoorPageModel.GanjoorSlashVaznPageId)
{
<div id="wordcounts-placeholder">
@if (Model.CategoryWordsCounts != null)
{
<partial name="~/Pages/Partials/GanjoorPage/_CategoryWordsCountPartial.cshtml" model="Model.CategoryWordsCounts" />
}
</div>
}
</article>
@* Navigation *@

View File

@ -176,30 +176,11 @@
<partial name="~/Pages/Partials/GanjoorPage/_InlinePageUtilsPartial.cshtml" model="Model" />
@if (Model.GanjoorPage.Id == 39401)
{
<div class="poempretab" id="pretab"></div>
<div class="poemtab" id="tab-items">
<div class="poemtablinks active"><a href="#poets-stats">سخنوران</a></div>
<div class="poemtablinks"><a href="#langs-stats">زبان‌ها</a></div>
<div class="poemtablinks"><a href="#formats-stats">قالب‌ها</a></div>
<div class="poemtablinks"><a href="#rhyhtms-stats">وزن‌ها</a></div>
<div class="poemtablinks"><a href="#couplets-stats">تعداد ابیات</a></div>
<div class="poemtablinks"><a href="#wordcounts-placeholder">بسامد واژگان</a></div>
</div>
}
@Html.Raw(Model.GanjoorPage.HtmlText)
@if (Model.GanjoorPage.Id == 39401)
{
<div id="wordcounts-placeholder">
@if (Model.CategoryWordsCounts != null)
{
<partial name="~/Pages/Partials/GanjoorPage/_CategoryWordsCountPartial.cshtml" model="Model.CategoryWordsCounts" />
}
</div>
}
</article>
@* Navigation *@

View File

@ -12,7 +12,7 @@
</div>
</a>
@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)))
{
<a href="#pretab" role="button" class="cursor-pointer" title="اطلاعات">
<div class="noborder-btn color-white">