docs: #329 review notes for moderation of sections edit suggestions

This commit is contained in:
Hamid Reza Mohammadi 2022-06-03 21:29:21 +04:30
parent 413ebbbb90
commit 2296386e9b
5 changed files with 22 additions and 3 deletions

View File

@ -57,6 +57,7 @@ else
rhythmReviewResult: rhythmReviewResult,
breakFromVIndices: breakFromVIndices,
titleReviewNote: $('#title_review_note') == null ? null : $('#title_review_note').val(),
reviewNote: $('#review_note').val()
},
success: function() {
location.reload(true);
@ -279,6 +280,11 @@ else
}
}
<tr>
<td>یادداشت بررسی:</td>
<td><input type="text" id="review_note" name="review_note" value="" size="50" /></td>
</tr>

View File

@ -171,7 +171,8 @@ namespace GanjooRazor.Areas.Admin.Pages
public async Task<IActionResult> OnPostSendCorrectionsModerationAsync(int correctionId,
string rhythmReviewResult,
int[] breakFromVIndices,
string titleReviewNote)
string titleReviewNote,
string reviewNote)
{
using (HttpClient secureClient = new HttpClient())
{
@ -299,6 +300,8 @@ namespace GanjooRazor.Areas.Admin.Pages
Correction.BreakFromVerse9VOrder = breakFromVerse9VOrder;
Correction.BreakFromVerse10VOrder = breakFromVerse10VOrder;
Correction.ReviewNote = reviewNote;
var moderationResponse = await secureClient.PostAsync($"{APIRoot.Url}/api/ganjoor/section/moderate",
new StringContent(JsonConvert.SerializeObject(Correction), Encoding.UTF8, "application/json"

View File

@ -147,6 +147,16 @@ else
</tr>
}
@if (!string.IsNullOrEmpty(correction.ReviewNote))
{
<tr>
<td>یادداشت بررسی:</td>
<td colspan="2">
@correction.ReviewNote
</td>
</tr>
}
<tr>
<td colspan="3">
@if (correction.Reviewed)

View File

@ -398,7 +398,7 @@ namespace RMuseum.Services.Implementation
await _notificationService.PushNotification(dbCorrection.UserId,
"بررسی ویرایش پیشنهادی شما",
$"با سپاس از زحمت و همت شما ویرایش پیشنهادیتان برای <a href=\"{dbPoem.FullUrl}\" target=\"_blank\">{dbPoem.FullTitle}</a> بررسی شد.{Environment.NewLine}" +
$"جهت مشاهدهٔ نتیجهٔ بررسی در میز کاربری خود بخش «ویرایش‌های من» را مشاهده بفرمایید.{Environment.NewLine}"
$"جهت مشاهدهٔ نتیجهٔ بررسی در میز کاربری خود بخش «<a href=\"/User/Edits\">ویرایش‌های من</a>» را مشاهده بفرمایید.{Environment.NewLine}"
);
foreach (var section in sections)

View File

@ -268,7 +268,7 @@ namespace RMuseum.Services.Implementation
await _notificationService.PushNotification(dbCorrection.UserId,
"بررسی ویرایش پیشنهادی شما",
$"با سپاس از زحمت و همت شما ویرایش پیشنهادیتان برای <a href=\"{dbPoem.FullUrl}\" target=\"_blank\">{dbPoem.FullTitle}</a> بررسی شد.{Environment.NewLine}" +
$"جهت مشاهدهٔ نتیجهٔ بررسی در میز کاربری خود بخش «ویرایش‌های قطعات من» را مشاهده بفرمایید.{Environment.NewLine}"
$"جهت مشاهدهٔ نتیجهٔ بررسی در میز کاربری خود بخش «<a href=\"/User/SectionEdits\">ویرایش‌های قطعات من</a>» را مشاهده بفرمایید.{Environment.NewLine}"
);
foreach (var section in sections)