docs: #319 listing a poems section

This commit is contained in:
Hamid Reza Mohammadi 2022-05-10 22:10:34 +04:30
parent 299ef5bfe2
commit 8a75a3cc9c

View File

@ -13,7 +13,7 @@
});
</script>
<script>
function savePoemCorrections(id, verseCount) {
var verseOrderText = [];
@ -610,6 +610,31 @@ else
<td><p id="saving">&nbsp;</p></td>
</tr>
@if (Model.PageInformation.Poem.Sections.Count(s => s.SectionType == RMuseum.Models.Ganjoor.PoemSectionType.WholePoem && s.VerseType == RMuseum.Models.Ganjoor.VersePoemSectionType.First) > 1)
{
<tr>
<td>
قطعات:
</td>
</tr>
<tr>
<td>
<table>
@foreach (var poemSetion in Model.PageInformation.Poem.Sections.Where(s => s.SectionType == RMuseum.Models.Ganjoor.PoemSectionType.WholePoem && s.VerseType == RMuseum.Models.Ganjoor.VersePoemSectionType.First).ToList())
{
<tr>
<td>
<a href="/User/Section?id=@poemSetion.Id">
قطعهٔ @(poemSetion.Number.ToPersianNumbers())
</a>
</td>
</tr>
}
</table>
</td>
</tr>
}
@if (Model.PageInformation.Poem.Previous != null)
{
<tr>