diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-TOC.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-TOC.cs index f7602f25..371d6313 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-TOC.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-TOC.cs @@ -331,7 +331,7 @@ namespace RMuseum.Services.Implementation } - html = _AddTabs(html, cat, true, "stats"); + html = _AddTabs(html, cat, "stats"); html += await _GetCategoryStatsPage(poet.Id, catId, rhythms, context); @@ -344,7 +344,7 @@ namespace RMuseum.Services.Implementation if (hasQuotes) { - html = _AddTabs(html, cat, false, "quoteds"); + html = _AddTabs(html, cat, "quoteds"); html += "
"; html += $"
{Environment.NewLine}"; @@ -682,7 +682,7 @@ namespace RMuseum.Services.Implementation } - html = _AddTabs(html, cat, true, "stats"); + html = _AddTabs(html, cat, "stats"); html += await _GetCategoryStatsPage(poet.Id, catId, rhythms, context); return new RServiceResult(html); @@ -693,12 +693,9 @@ namespace RMuseum.Services.Implementation } } - private string _AddTabs(string html, GanjoorCat cat, bool first, string active) + private string _AddTabs(string html, GanjoorCat cat, string active) { - if(first) - { - html += $"
{Environment.NewLine}"; - } + html += $"
{Environment.NewLine}"; html += $"
{Environment.NewLine}"; html += $"{Environment.NewLine}"; if (cat.ParentId == null)