docs: #339 moving rhyming poems to the navbar
This commit is contained in:
parent
f09d2c9ddc
commit
29aa1c9cb5
@ -552,7 +552,6 @@ namespace GanjooRazor.Pages
|
||||
|
||||
public bool MutiPartPoemPage { get; set; }
|
||||
|
||||
public List<GanjoorPoemSection> SectionsWithMetreAndRhymes { get; set; }
|
||||
private void _prepareRelatedSecions()
|
||||
{
|
||||
SectionsWithRelated = new List<GanjoorPoemSection>();
|
||||
|
||||
@ -37,6 +37,8 @@ namespace GanjooRazor.Pages
|
||||
|
||||
public List<GanjoorPoemSection> SectionsWithRelated { get; set; }
|
||||
|
||||
public List<GanjoorPoemSection> SectionsWithMetreAndRhymes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// logout
|
||||
/// </summary>
|
||||
|
||||
@ -325,23 +325,6 @@
|
||||
</text>
|
||||
}
|
||||
|
||||
@if (Model.SectionsWithMetreAndRhymes != null)
|
||||
{
|
||||
@if (Model.SectionsWithMetreAndRhymes.Any())
|
||||
{
|
||||
<text>
|
||||
<a role="button" class="pagebutton" href="@Html.Raw($"/simi/?v={Uri.EscapeDataString(Model.SectionsWithMetreAndRhymes.First().GanjoorMetre.Rhythm)}&g={Uri.EscapeDataString(Model.SectionsWithMetreAndRhymes.First().RhymeLetters)}")">موارد هم آهنگ<i class="info-buttons rhyming-poems"></i></a>
|
||||
</text>
|
||||
|
||||
@for (int nSectionIndex = 1; nSectionIndex < Model.SectionsWithMetreAndRhymes.Count; nSectionIndex++)
|
||||
{
|
||||
<text>
|
||||
<a role="button" class="pagebutton" href="@Html.Raw($"/simi/?v={Uri.EscapeDataString(Model.SectionsWithMetreAndRhymes[nSectionIndex].GanjoorMetre.Rhythm)}&g={Uri.EscapeDataString(Model.SectionsWithMetreAndRhymes[nSectionIndex].RhymeLetters)}")">موارد هم آهنگ (وزن @((nSectionIndex + 1).ToPersianNumbers()))<i class="info-buttons rhyming-poems"></i></a>
|
||||
</text>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span id="t6e" class="w3tooltip">
|
||||
<a role="button" id="t6e-button" target="_blank" class="pagebutton" href="/t6e?p=@Model.GanjoorPage.Id"><i class="info-buttons menu-book"></i></a>
|
||||
<span class="w3tooltiptext" id="t6e-tooltip">نمای چاپی</span>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
@model GanjooRazor.Pages.LoginPartialEnabledPageModel
|
||||
@using DNTPersianUtils.Core
|
||||
|
||||
<div id="main-navbar" role="navigation">
|
||||
|
||||
@ -139,13 +140,40 @@
|
||||
<span class="w3tooltiptext" id="copytext-tooltip">رونوشت متن</span>
|
||||
</a>
|
||||
|
||||
<a onclick="webSharePoem()" role="button" class="w3tooltip cursor-pointer" id="share_span">
|
||||
<a onclick="webSharePoem()" role="button" class="w3tooltip cursor-pointer" id="share_span">
|
||||
<div class="circled-number">
|
||||
<i class="noindent-info-button share-icon"></i>
|
||||
</div>
|
||||
<span class="w3tooltiptext">همرسانی</span>
|
||||
</a>
|
||||
|
||||
@if (Model.SectionsWithMetreAndRhymes != null)
|
||||
{
|
||||
@if (Model.SectionsWithMetreAndRhymes.Any())
|
||||
{
|
||||
<text>
|
||||
<a href="@Html.Raw($"/simi/?v={Uri.EscapeDataString(Model.SectionsWithMetreAndRhymes.First().GanjoorMetre.Rhythm)}&g={Uri.EscapeDataString(Model.SectionsWithMetreAndRhymes.First().RhymeLetters)}")" role="button" class="w3tooltip cursor-pointer">
|
||||
<div class="circled-number">
|
||||
<i class="noindent-info-button rhyming-poems"></i>
|
||||
</div>
|
||||
<span class="w3tooltiptext">موارد هم آهنگ</span>
|
||||
</a>
|
||||
</text>
|
||||
|
||||
@for (int nSectionIndex = 1; nSectionIndex < Model.SectionsWithMetreAndRhymes.Count; nSectionIndex++)
|
||||
{
|
||||
<text>
|
||||
<a href="@Html.Raw($"/simi/?v={Uri.EscapeDataString(Model.SectionsWithMetreAndRhymes[nSectionIndex].GanjoorMetre.Rhythm)}&g={Uri.EscapeDataString(Model.SectionsWithMetreAndRhymes[nSectionIndex].RhymeLetters)}")" role="button" class="w3tooltip cursor-pointer">
|
||||
<div class="circled-number">
|
||||
<i class="noindent-info-button rhyming-poems"></i>
|
||||
</div>
|
||||
<span class="w3tooltiptext">موارد هم آهنگ (وزن @((nSectionIndex + 1).ToPersianNumbers()))</span>
|
||||
</a>
|
||||
</text>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user