restoring stats section collapsable buttons

This commit is contained in:
Hamid Reza Mohammadi 2024-04-10 14:16:25 +03:30
parent 36820d39ac
commit c0b3c6ad7e
2 changed files with 2 additions and 13 deletions

View File

@ -2,18 +2,7 @@
@using DNTPersianUtils.Core
<div id="utils-navbar">
@if (Model.GanjoorPage != null
&&
(
Model.GanjoorPage.Poem != null
||
!string.IsNullOrEmpty(Model.PreviousUrl) || !string.IsNullOrEmpty(Model.NextUrl)
||
(Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0)
||
(Model.CategoryHasRecitations)
)
)
@if (Model.GanjoorPage != null)
{
<div class="clear-both utilbar">
@if (Model.GanjoorPage.Poem != null)

View File

@ -402,7 +402,7 @@ namespace RMuseum.Services.Implementation
string htmlText = "<div class=\"related-images-frame\" id=\"cat-stats\">";
htmlText += $"<div class=\"century\">{Environment.NewLine}";
htmlText += $"آمار{Environment.NewLine}";
htmlText += $" آمار <a role=\"button\" class=\"w3tooltip cursor-pointer\" onclick=\"switch_section('stats-section', 'stats-collapse-button')\"><i class=\"info-buttons expand_circle_down\" id=\"stats-collapse-button\"></i><span class=\"w3tooltiptext\">جمع شود / باز شود</span></a>{Environment.NewLine}";
htmlText += $"</div>{Environment.NewLine}";
htmlText += $"<div id=\"stats-section\">{Environment.NewLine}";