showing rhyme and rhythm in list of poems
This commit is contained in:
parent
c9585b5dc9
commit
90565bdf16
@ -32,6 +32,20 @@
|
||||
|
||||
<h2>اشعار بخش</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>
|
||||
عنوان
|
||||
</th>
|
||||
<th>
|
||||
ابتدا
|
||||
</th>
|
||||
<th>
|
||||
حروف قافیه
|
||||
</th>
|
||||
<th>
|
||||
وزن
|
||||
</th>
|
||||
</tr>
|
||||
@foreach (var poem in Model.Cat.Cat.Poems)
|
||||
{
|
||||
<tr>
|
||||
@ -41,6 +55,12 @@
|
||||
<td>
|
||||
@poem.Excerpt
|
||||
</td>
|
||||
<td>
|
||||
@poem.RhymeLetters
|
||||
</td>
|
||||
<td>
|
||||
@poem.Rhythm
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
|
||||
@ -24,6 +24,18 @@
|
||||
/// excerpt text
|
||||
/// </summary>
|
||||
public string Excerpt { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Rythm
|
||||
/// </summary>
|
||||
/// <example>مفاعیلن مفاعیلن فعولن</example>
|
||||
public string Rhythm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// rhyme letters
|
||||
/// </summary>
|
||||
public string RhymeLetters { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -5454,6 +5454,17 @@
|
||||
excerpt text
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorPoemSummaryViewModel.Rhythm">
|
||||
<summary>
|
||||
Rythm
|
||||
</summary>
|
||||
<example>مفاعیلن مفاعیلن فعولن</example>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorPoemSummaryViewModel.RhymeLetters">
|
||||
<summary>
|
||||
rhyme letters
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:RMuseum.Models.Ganjoor.ViewModels.GanjoorPoetCompleteViewModel">
|
||||
<summary>
|
||||
Poet Complete Information
|
||||
|
||||
@ -283,14 +283,17 @@ namespace RMuseum.Services.Implementation
|
||||
FullUrl = c.FullUrl
|
||||
}
|
||||
).AsNoTracking().ToListAsync(),
|
||||
Poems = poems ? await _context.GanjoorPoems.Where(p => p.CatId == cat.Id).OrderBy(p => p.Id).Select
|
||||
Poems = poems ? await _context.GanjoorPoems.Include(p => p.GanjoorMetre)
|
||||
.Where(p => p.CatId == cat.Id).OrderBy(p => p.Id).Select
|
||||
(
|
||||
p => new GanjoorPoemSummaryViewModel()
|
||||
{
|
||||
Id = p.Id,
|
||||
Title = p.Title,
|
||||
UrlSlug = p.UrlSlug,
|
||||
Excerpt = _context.GanjoorVerses.Where(v => v.PoemId == p.Id && v.VOrder == 1).FirstOrDefault().Text
|
||||
Excerpt = _context.GanjoorVerses.Where(v => v.PoemId == p.Id && v.VOrder == 1).FirstOrDefault().Text,
|
||||
Rhythm = p.GanjoorMetre.Rhythm,
|
||||
RhymeLetters = p.RhymeLetters
|
||||
}
|
||||
).AsNoTracking().ToListAsync()
|
||||
:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user