notifying user on not suggesting custom rhymes

This commit is contained in:
Hamid Reza Mohammadi 2024-05-23 09:23:47 +03:30
parent 6eb714cf9d
commit c25b112939
3 changed files with 18 additions and 1 deletions

View File

@ -1058,6 +1058,7 @@ else
}
else
{
<tr id="rhythms-section">
<td>
وزن فعلی:
@ -1068,6 +1069,11 @@ else
<p id="rhythm-old">@(Model.GanjoorMetre1 == null ? "" : Model.GanjoorMetre1.Rhythm)</p>
</td>
</tr>
<tr>
<td>
<p class="red-color">توجه داشته باشید که کارکرد برچسب‌گذاری اشعار در گنجور یافتن اشعار هم‌وزن است. از این جهت از پیشنهاد صورت‌های سلیقه‌ای و متفاوت یک وزن خودداری کنید تا این قابلیت مختل نشود. <a href="https://ganjoor.net/faq?id=14">این نکته</a> را هم مد نظر داشته باشید.</p>
</td>
</tr>
<tr>
<td>
وزن ویراستهٔ من:

View File

@ -170,6 +170,7 @@ else
@Html.Raw(Model.PoemSection.HtmlText)
</td>
</tr>
<tr>
<td>
وزن فعلی:
@ -180,6 +181,11 @@ else
<p id="rhythm-old">@(Model.PoemSection.GanjoorMetre == null ? "" : Model.PoemSection.GanjoorMetre.Rhythm)</p>
</td>
</tr>
<tr>
<td>
<p class="red-color">توجه داشته باشید که کارکرد برچسب‌گذاری اشعار در گنجور یافتن اشعار هم‌وزن است. از این جهت از پیشنهاد صورت‌های سلیقه‌ای و متفاوت یک وزن خودداری کنید تا این قابلیت مختل نشود. <a href="https://ganjoor.net/faq?id=14">این نکته</a> را هم مد نظر داشته باشید.</p>
</td>
</tr>
<tr>
<td>
وزن ویراستهٔ من:

View File

@ -157,7 +157,12 @@ namespace GanjooRazor.Areas.User.Pages
RhythmsAlphabetically = rhythmsByVerseCount.ToArray();
PoemSection = PageInformation.Poem.Sections.Where(s => s.Index == int.Parse(Request.Query["index"])).Single();
PoemSection = PageInformation.Poem.Sections.Where(s => s.Index == int.Parse(Request.Query["index"])).SingleOrDefault();
if(PoemSection == null)
{
FatalError = "این قطعه به طور مستقل قابل ویرایش نیست.";
return Page();
}
if(string.IsNullOrEmpty(PoemSection.Language))
{
PoemSection.Language = "fa-IR";