add sections to the stats page #473

This commit is contained in:
Hamid Reza Mohammadi 2025-03-08 19:56:19 +03:30
parent 25e2722ba2
commit 6d8d9049f1
2 changed files with 13 additions and 1 deletions

View File

@ -223,6 +223,18 @@
}
}
<partial name="_InlinePageUtilsPartial" 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)
}

View File

@ -12,7 +12,7 @@
</div>
</a>
@if (Model.GanjoorPage != null && Model.GanjoorPage.PoetOrCat != null && Model.GanjoorPage.SecondPoet == null)
@if (Model.GanjoorPage != null && ((Model.GanjoorPage.PoetOrCat != null && Model.GanjoorPage.SecondPoet == null) || (Model.GanjoorPage.Id == 39401)))
{
<a href="#pretab" role="button" class="cursor-pointer" title="اطلاعات">
<div class="noborder-btn color-white">