docs: #373 display poem format suggestions in section edits
This commit is contained in:
parent
3fb2b946ac
commit
c047cf1179
@ -178,6 +178,41 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
@if (correction.PoemFormat != null)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
<p style="color:red">قالب شعری: @RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString((RMuseum.Models.Ganjoor.GanjoorPoemFormat?)correction.OriginalPoemFormat)</p>
|
||||
</td>
|
||||
<td>
|
||||
<p style="color:green">@RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString((RMuseum.Models.Ganjoor.GanjoorPoemFormat?)correction.PoemFormat)</p>
|
||||
</td>
|
||||
<td>
|
||||
@if (correction.PoemFormatReviewResult == CorrectionReviewResult.NotReviewed)
|
||||
{
|
||||
<p style="color:blue">@CorrectionReviewResultConvertor.GetString(correction.PoemFormatReviewResult)</p>
|
||||
}
|
||||
else
|
||||
@if (correction.PoemFormatReviewResult == CorrectionReviewResult.Approved)
|
||||
{
|
||||
<p style="color:green">@CorrectionReviewResultConvertor.GetString(correction.PoemFormatReviewResult)</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p style="color:red">@CorrectionReviewResultConvertor.GetString(correction.PoemFormatReviewResult)</p>
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
@if (!string.IsNullOrEmpty(correction.ReviewNote))
|
||||
{
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<p>@correction.ReviewNote</p>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
@if (
|
||||
correction.BreakFromVerse1VOrderResult == CorrectionReviewResult.Approved
|
||||
||
|
||||
|
||||
@ -14989,7 +14989,7 @@
|
||||
poem format convertor
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(RMuseum.Models.Ganjoor.GanjoorPoemFormat)">
|
||||
<member name="M:RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(System.Nullable{RMuseum.Models.Ganjoor.GanjoorPoemFormat})">
|
||||
<summary>
|
||||
تبدیل به رشته
|
||||
</summary>
|
||||
|
||||
@ -12,8 +12,9 @@ namespace RMuseum.Services.Implementation
|
||||
/// </summary>
|
||||
/// <param name="format"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetString(GanjoorPoemFormat format)
|
||||
public static string GetString(GanjoorPoemFormat? format)
|
||||
{
|
||||
if (format == null) return "";
|
||||
switch (format)
|
||||
{
|
||||
case GanjoorPoemFormat.Ghazal:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user