diff --git a/GanjooRazor/Areas/Admin/Pages/Banners.cshtml b/GanjooRazor/Areas/Admin/Pages/Banners.cshtml index 2b86e586..3a1ad0b3 100644 --- a/GanjooRazor/Areas/Admin/Pages/Banners.cshtml +++ b/GanjooRazor/Areas/Admin/Pages/Banners.cshtml @@ -7,50 +7,62 @@ ViewData["WideShell"] = true; } -

@ViewData["Title"]

+
+

@ViewData["Title"]

+
- -

@Model.LastMessage

- -
- - - - -
- -@if (Model.Banners != null) +@if (!string.IsNullOrEmpty(Model.LastMessage)) { - - - @foreach (var banner in Model.Banners) - { - - - - - @if (banner.Active) - { - - } - else - { - - } - - - } -
متن جایگزین: نشانی مقصد: @banner.AlternateTextفعال فعال - ✎ - 🗑 -
+
@Model.LastMessage
+} -
-
- - - - +
+

آگاهی جدید

+ +
+ + +
+
+ + +
+
+ + +
+
+ +
+ +@if (Model.Banners != null && Model.Banners.Length > 0) +{ + + @foreach (var banner in Model.Banners) + { + + + + + @if (banner.Active) + { + + } + else + { + + } + + + } +
متن جایگزین: نشانی مقصد: @banner.AlternateTextفعال فعال + ✎ + 🗑 +
+} +else +{ + } diff --git a/GanjooRazor/Areas/Admin/Pages/CatTrans.cshtml b/GanjooRazor/Areas/Admin/Pages/CatTrans.cshtml index bb032e64..594bfc84 100644 --- a/GanjooRazor/Areas/Admin/Pages/CatTrans.cshtml +++ b/GanjooRazor/Areas/Admin/Pages/CatTrans.cshtml @@ -6,19 +6,20 @@ ViewData["Title"] = "انتقال بخش"; } -

@ViewData["Title"]

+
+

@ViewData["Title"]

+
@if (!string.IsNullOrEmpty(Model.LastMessage)) { - @Html.Raw(Model.LastMessage) +
@Html.Raw(Model.LastMessage)
} else { - - - - - - - - - @foreach (var poem in Model.Poems) - { - - - - - - - - -
مبدأمصرع اولمقصدمصرع اول#
- @poem.SrcPoemFullTitle - - @poem.FirstVerse - - @if (!string.IsNullOrEmpty(poem.DestPoemFullUrl)) - { - @poem.DestPoemFullTitle - } - - @if (!string.IsNullOrEmpty(poem.DestPoemFirstVerse)) - { - @poem.DestPoemFirstVerse - } - - + @if (Model.Poems != null && Model.Poems.Length > 0) + { + + + + + + + + + + @foreach (var poem in Model.Poems) + { + + + + + + + + } + + + - } +
مبدأمصرع اولمقصدمصرع اول#
+ @poem.SrcPoemFullTitle + + @poem.FirstVerse + + @if (!string.IsNullOrEmpty(poem.DestPoemFullUrl)) + { + @poem.DestPoemFullTitle + } + + @if (!string.IsNullOrEmpty(poem.DestPoemFirstVerse)) + { + @poem.DestPoemFirstVerse + } + + +
+ فقط بدون مقصد
+ } + else + { + + } -
- فقط بدون مقصد -
+
+
+ +
+ + +
+
+
- - - - - -
مشابه‌یابی در بخش: -
- - -
-
- - - - - - -
نهایی سازی انتقال به بخش: -
- - -
-
+
+
+ +
+ + +
+
+
} - diff --git a/GanjooRazor/Areas/Admin/Pages/Donations.cshtml b/GanjooRazor/Areas/Admin/Pages/Donations.cshtml index 62a19ef0..ea354de9 100644 --- a/GanjooRazor/Areas/Admin/Pages/Donations.cshtml +++ b/GanjooRazor/Areas/Admin/Pages/Donations.cshtml @@ -1,10 +1,9 @@ -@page +@page @model GanjooRazor.Areas.Admin.Pages.DonationsModel @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @{ Layout = "_AdminLayout"; ViewData["Title"] = "کمک‌های مالی"; - ViewData["WideShell"] = true; }

@ViewData["Title"]

@@ -60,7 +59,7 @@

@Model.ShowAccountInfo

} -@if (Model.Donations != null) +@if (Model.Donations != null && Model.Donations.Length > 0) { @@ -84,3 +83,7 @@ }
} +else +{ + +} diff --git a/GanjooRazor/Areas/Admin/Pages/EditQuoted.cshtml b/GanjooRazor/Areas/Admin/Pages/EditQuoted.cshtml index 2e34b416..9af2e8d6 100644 --- a/GanjooRazor/Areas/Admin/Pages/EditQuoted.cshtml +++ b/GanjooRazor/Areas/Admin/Pages/EditQuoted.cshtml @@ -7,17 +7,21 @@ ViewData["Title"] = "پیشنهاد مشق شعر"; } -

@ViewData["Title"]

+
+

@ViewData["Title"]

+
-

@Html.Raw(Model.LastMessage)

+@if (!string.IsNullOrEmpty(Model.LastMessage)) +{ +
@Html.Raw(Model.LastMessage)
+} @if (Model.DisplayAll) { -

همهٔ مشق‌های منتشر نشده

- - - - - - - - - - - @foreach (var q in Model.AllPoemQuoteds) - { - - - - - - - - - +
+

همهٔ مشق‌های منتشر نشده

+
+ @if (Model.AllPoemQuoteds != null && Model.AllPoemQuoteds.Length > 0) + { +
#شاعر۱۲۱۲حذف
@q.PoemId-@q.RelatedPoemId @q.CachedRelatedPoemPoetName - @if (q.CoupletVerse1ShouldBeEmphasized) - { - @q.CoupletVerse1 - } - else - { - @q.CoupletVerse1 - } - - @if (q.CoupletVerse2ShouldBeEmphasized) - { - @q.CoupletVerse2 - } - else - { - @q.CoupletVerse2 - } - - @if (q.RelatedCoupletVerse1ShouldBeEmphasized) - { - @q.RelatedCoupletVerse1 - } - else - { - @q.RelatedCoupletVerse1 - } - - @if (q.RelatedCoupletVerse2ShouldBeEmphasized) - { - @q.RelatedCoupletVerse2 - } - else - { - @q.RelatedCoupletVerse2 - } - حذف
- + + + + + + + - } -
-
-
#شاعر۱۲۱۲حذف
+ @foreach (var q in Model.AllPoemQuoteds) + { + + @q.PoemId-@q.RelatedPoemId + @q.CachedRelatedPoemPoetName + + @if (q.CoupletVerse1ShouldBeEmphasized) + { + @q.CoupletVerse1 + } + else + { + @q.CoupletVerse1 + } + + + @if (q.CoupletVerse2ShouldBeEmphasized) + { + @q.CoupletVerse2 + } + else + { + @q.CoupletVerse2 + } + + + @if (q.RelatedCoupletVerse1ShouldBeEmphasized) + { + @q.RelatedCoupletVerse1 + } + else + { + @q.RelatedCoupletVerse1 + } + + + @if (q.RelatedCoupletVerse2ShouldBeEmphasized) + { + @q.RelatedCoupletVerse2 + } + else + { + @q.RelatedCoupletVerse2 + } + + 🗑 + + + +
+ + + } + + } + else + { + + } return; }

- همهٔ مشق‌های منتشر نشده + 📚 همهٔ مشق‌های منتشر نشده

@@ -135,7 +145,7 @@ fetch('@(GanjooRazor.APIRoot.InternetUrl)/api/ganjoor/page?url=' + url) .then((response) => response.json()) .then((json) => { - alert(json.poem.id); + upToast(String(json.poem.id)); document.getElementById('GanjoorQuotedPoem_RelatedPoemId').value = json.poem.id; document.getElementById('GanjoorQuotedPoem_RelatedPoetId').value = json.poem.category.poet.id; document.getElementById('GanjoorQuotedPoem_CachedRelatedPoemPoetName').value = json.poem.category.poet.nickname; @@ -176,10 +186,9 @@ } - function deleteThisOne(id) { - if (!confirm('آیا از حذف این مورد اطمینان دارید؟')) - return; - + async function deleteThisOne(id) { + var ok = await upConfirm('آیا از حذف این مورد اطمینان دارید؟'); + if (!ok) return; $.ajax({ type: "DELETE", @@ -188,23 +197,19 @@ id: id }, error: function (e) { - if (e.responseText == null) - alert(e); - else - alert(e.responseText); + upToast(e.responseText || String(e), 'error'); }, success: function () { - alert('انجام شد.'); + upToast('انجام شد.'); location.reload(true); }, }); } - - function reverseQuote(id) { - if (!confirm('آیا از درج معکوس این مورد اطمینان دارید؟')) - return; + async function reverseQuote(id) { + var ok = await upConfirm('آیا از درج معکوس این مورد اطمینان دارید؟'); + if (!ok) return; $.ajax({ type: "POST", @@ -213,355 +218,209 @@ id: id }, error: function (e) { - if (e.responseText == null) - alert(e); - else - alert(e.responseText); + upToast(e.responseText || String(e), 'error'); }, success: function (e) { - alert('انجام شد.'); + upToast('انجام شد.'); location.href = e; }, }); } -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ +

+ بیت مرجع از شعر: + + + +

-
- - - - - +
+ + +
+ +
+ + +
+
+ + +
+ +
+ + +
+ + + + +
+ + +
@if (Model.GanjoorQuotedPoem.RelatedPoemId != null) { - - - +

🔗 مشاهدهٔ شعر مرتبط

} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ + +
+
+ + +
- +
+ + +
+
+ + +
+ +
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+ +
+ @if (Model.ReverseId != null) + { + 🔁 نمایش معکوس + } + else + { + 🔁 درج معکوس + } + 🗑 حذف +
+ + + +
+

همهٔ مشق‌های شعر

+
+ @if (Model.AllPoemQuoteds != null && Model.AllPoemQuoteds.Length > 0) + { +
- بیت مرجع از شعر: - - - -
- -
- مصرع اول مهم است: -
- -
- مصرع دوم مهم است: -
- -
- شاعر مرجع: -
- -
- -
- -
- گزینش شعر مرتبط -
- -
- مشاهدهٔ شعر مرتبط -
- بیت مرتبط: -
- -
- مصرع اول مرتبط (خارج از گنجور): -
- -
- مصرع اول مهم است: -
- -
- مصرع دوم مرتبط (خارج از گنجور): -
- -
- مصرع دوم مهم است: -
- -
- ترتیب: -
- -
- این شعر قدیمی‌تر از شعر مرتبط است: -
- -
- نمایش در فهرست اصلی: -
- -
- مستقیماً ارتباط ندارد: -
- -
- منتسب به هر دو شاعر: -
- -
- شاعر: -
- -
- -
- سالمرگ شاعر: -
- -
- نشانی صفحهٔ شاعر: -
- -
- تصویر شاعر: -
- -
- عنوان شعر: -
- -
- نشانی شعر: -
- -
- یادداشت: -
- -
- منتشر شده: -
- -
- تعداد همسان‌ها: -
- -
- -

- @if (Model.ReverseId != null) +
+ + +
-

- + + + + + + + + @foreach (var q in Model.AllPoemQuoteds) + { + + + + + + + + + + }
- حذف - #شاعر۱۲۱۲منتشر شده
# @q.CachedRelatedPoemPoetName@q.CoupletVerse1@q.CoupletVerse2@q.RelatedCoupletVerse1@q.RelatedCoupletVerse2@q.Published
- - -

همهٔ مشق‌های شعر

- - - - - - - - - - - @foreach (var q in Model.AllPoemQuoteds) - { - - - - - - - - - - } -
#شاعر۱۲۱۲منتشر شده
# @q.CachedRelatedPoemPoetName@q.CoupletVerse1@q.CoupletVerse2@q.RelatedCoupletVerse1@q.RelatedCoupletVerse2@q.Published
- - -} \ No newline at end of file + } + else + { + + } +} diff --git a/GanjooRazor/Areas/Admin/Pages/Expenses.cshtml b/GanjooRazor/Areas/Admin/Pages/Expenses.cshtml index a1e6e808..1e20177c 100644 --- a/GanjooRazor/Areas/Admin/Pages/Expenses.cshtml +++ b/GanjooRazor/Areas/Admin/Pages/Expenses.cshtml @@ -1,10 +1,9 @@ -@page +@page @model GanjooRazor.Areas.Admin.Pages.ExpensesModel @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @{ Layout = "_AdminLayout"; ViewData["Title"] = "هزینه‌ها"; - ViewData["WideShell"] = true; }

@ViewData["Title"]

@@ -49,7 +48,7 @@

@Model.ShowAccountInfo

} -@if (Model.Expenses != null) +@if (Model.Expenses != null && Model.Expenses.Length > 0) { @@ -72,3 +71,7 @@ }
} +else +{ + +} diff --git a/GanjooRazor/Areas/Admin/Pages/Locations.cshtml b/GanjooRazor/Areas/Admin/Pages/Locations.cshtml index cbcdbdb0..2a5150ca 100644 --- a/GanjooRazor/Areas/Admin/Pages/Locations.cshtml +++ b/GanjooRazor/Areas/Admin/Pages/Locations.cshtml @@ -6,9 +6,14 @@ ViewData["Title"] = "خاستگاه‌ها"; } -

@ViewData["Title"]

+
+

@ViewData["Title"]

+
-

@Model.LastMessage

+@if (!string.IsNullOrEmpty(Model.LastMessage)) +{ +
@Model.LastMessage
+} -
- - - - - - - - - - - - - - - - - - - -
- نام: - - -
- عرض جغرافیایی (N): - - -
- طول جغرافیایی (E): - - -
- مشاهده روی نقشه -
- -
+
+

خاستگاه جدید

+ +
+ + +
+
+ + +
+
+ + +
+ + +
- - - - - -@if (Model.Locations != null) +@if (Model.Locations != null && Model.Locations.Length > 0) { -@if (Model.Jobs != null) +@if (Model.Jobs != null && Model.Jobs.Length > 0) {
حذف کارهای قدیمی @@ -82,10 +81,11 @@ } - @if (Model.Jobs.Length > 0) - { - - } + +} +else if (Model.Jobs != null) +{ + } diff --git a/GanjooRazor/Areas/Admin/Pages/PageHistory.cshtml b/GanjooRazor/Areas/Admin/Pages/PageHistory.cshtml index 576e6efa..b49ba401 100644 --- a/GanjooRazor/Areas/Admin/Pages/PageHistory.cshtml +++ b/GanjooRazor/Areas/Admin/Pages/PageHistory.cshtml @@ -7,11 +7,16 @@ ViewData["Title"] = "سابقهٔ ویرایش"; } -

@ViewData["Title"]

+
+

@ViewData["Title"]

+
-

@Model.LastMessage

+@if (!string.IsNullOrEmpty(Model.LastMessage)) +{ +

@Model.LastMessage

+} -@if (Model.OlderVersions != null) +@if (Model.OlderVersions != null && Model.OlderVersions.Length > 0) { @@ -34,5 +39,8 @@ }
- -} \ No newline at end of file +} +else +{ + +} diff --git a/GanjooRazor/Areas/Admin/Pages/Poets.cshtml b/GanjooRazor/Areas/Admin/Pages/Poets.cshtml index 143b4e9b..adb0f831 100644 --- a/GanjooRazor/Areas/Admin/Pages/Poets.cshtml +++ b/GanjooRazor/Areas/Admin/Pages/Poets.cshtml @@ -1,10 +1,9 @@ -@page +@page @model GanjooRazor.Areas.Admin.Pages.PoetsModel @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @{ Layout = "_AdminLayout"; ViewData["Title"] = "مدیریت سخنوران"; - ViewData["WideShell"] = true; }

@ViewData["Title"]

@@ -72,8 +71,10 @@ چسبانی - @foreach (var poet in Model.Poets) + @if (Model.Poets != null && Model.Poets.Length > 0) { + @foreach (var poet in Model.Poets) + { @poet.Nickname @@ -158,6 +159,15 @@ ذخیرهٔ @poet.Nickname + } + } + else + { + + + + + } diff --git a/GanjooRazor/Areas/User/Pages/AllPoemSections.cshtml b/GanjooRazor/Areas/User/Pages/AllPoemSections.cshtml index ab2e5022..6e7a731d 100644 --- a/GanjooRazor/Areas/User/Pages/AllPoemSections.cshtml +++ b/GanjooRazor/Areas/User/Pages/AllPoemSections.cshtml @@ -1,129 +1,102 @@ @page @model GanjooRazor.Areas.User.Pages.AllPoemSectionsModel +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @using DNTPersianUtils.Core @{ Layout = "_UserPanelLayout"; ViewData["Title"] = "همهٔ قطعات شعر"; await GanjooRazor.Utils.GanjoorSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData); } -

@ViewData["Title"]

+
+

@ViewData["Title"]

+
@if (!string.IsNullOrEmpty(Model.FatalError)) { - @Html.Raw(Model.FatalError) +
@Html.Raw(Model.FatalError)
} else { - + + @if (Model.PoemSections != null && Model.PoemSections.Length > 0) + { @foreach (var poemSection in Model.PoemSections) { - @if (poemSection.SectionType == RMuseum.Models.Ganjoor.PoemSectionType.WholePoem) - { - - - - } + + } - - - - - - - +

@Html.Raw(poemSection.HtmlText)

- - - - +
+
+ +

@poemSection.SectionType

+
+
+ +

@poemSection.VerseType

+
+
+ +

@poemSection.Index

+
+
+ +

@poemSection.Number

+
+
- - - - +
+
+ +

@(poemSection.GanjoorMetre == null ? "تعیین نشده" : poemSection.GanjoorMetre.Rhythm)

+
+
+ +

@poemSection.RhymeLetters

+
+
- - - - - - - - - - - - - - - - - @if (poemSection.GanjoorMetre != null && !string.IsNullOrEmpty(poemSection.RhymeLetters) && Model.CanEdit) - { - - - - } + @if (poemSection.GanjoorMetre != null && !string.IsNullOrEmpty(poemSection.RhymeLetters) && Model.CanEdit) + { + 🔁 بازسازی مرتبط‌ها + } + } -
- +
- @Html.Raw(poemSection.HtmlText) -
- نوع - - @poemSection.SectionType -
- Verse Type - - @poemSection.VerseType -
- Index - - @poemSection.Index -
- Number - - @poemSection.Number -
- وزن - - @(poemSection.GanjoorMetre == null ? "تعیین نشده" : poemSection.GanjoorMetre.Rhythm) -
- حروف قافیه - - @poemSection.RhymeLetters -
- بازسازی مرتبط‌ها -
- -} \ No newline at end of file + } + else + { + + } +} diff --git a/GanjooRazor/Areas/User/Pages/FAQItems.cshtml b/GanjooRazor/Areas/User/Pages/FAQItems.cshtml index ed2423bc..816af0e7 100644 --- a/GanjooRazor/Areas/User/Pages/FAQItems.cshtml +++ b/GanjooRazor/Areas/User/Pages/FAQItems.cshtml @@ -126,7 +126,7 @@ else
- @if (Model.CategoryItems != null) + @if (Model.CategoryItems != null && Model.CategoryItems.Length > 0) { @foreach (var item in Model.CategoryItems) { @@ -138,5 +138,9 @@ else
} } + else + { +

پرسشی در این دسته نیست.

+ }
} diff --git a/GanjooRazor/Areas/User/Pages/Languages.cshtml b/GanjooRazor/Areas/User/Pages/Languages.cshtml index 767b1709..74e7a971 100644 --- a/GanjooRazor/Areas/User/Pages/Languages.cshtml +++ b/GanjooRazor/Areas/User/Pages/Languages.cshtml @@ -6,78 +6,52 @@ ViewData["Title"] = "زبان‌ها و نویسش‌ها"; await GanjooRazor.Utils.GanjoorSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData); } -

@ViewData["Title"]

+
+

@ViewData["Title"]

+
@if (!string.IsNullOrEmpty(Model.LastMessage)) { -

- @Model.LastMessage -

+
@Model.LastMessage
} else { -
- - - - - - - - - - - - - - - - - - - - - +
+

زبان جدید

+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
- - - - -
- نام: - - -
- کد: - - -
- نام بومی زبان: - - -
- راست به چپ: - - -
- شرح: - - -
- -
- - - - - @if (Model.Languages != null) + @if (Model.Languages != null && Model.Languages.Length > 0) { -

- @foreach (var paginationLink in Model.PaginationLinks) - { - if (!string.IsNullOrEmpty(paginationLink.Url)) - { - @paginationLink.Name - } - else - { - @paginationLink.Name - } - } -

- @foreach (var correction in Model.Corrections) + @if (Model.PaginationLinks != null && Model.PaginationLinks.Count > 0) { - if (color == "gray") - color = "lightsteelblue"; - else - color = "gray"; - -
- - @if(Model.CanEdit) +
+ @foreach (var paginationLink in Model.PaginationLinks) + { + if (!string.IsNullOrEmpty(paginationLink.Url)) { -
- - - + @paginationLink.Name } - - - - - - - - - - - - @if (correction.Title != null && correction.Result == CorrectionReviewResult.Approved) + else { - - - - - - - + @paginationLink.Name } - @if (correction.PoemSummary != null && correction.SummaryReviewResult == CorrectionReviewResult.Approved) - { - - - - - - - - } - @if (correction.Rhythm != null && correction.RhythmResult == CorrectionReviewResult.Approved) - { - - - - - - - } - @if (correction.RhymeLetters != null && correction.RhymeLettersReviewResult == CorrectionReviewResult.Approved) - { - - - - - - - } - @if (correction.PoemFormat != null && correction.PoemFormatReviewResult == CorrectionReviewResult.Approved) - { - - - - - - - } - @if (correction.VerseOrderText != null) - @foreach (var verse in correction.VerseOrderText) - { - @if (verse.MarkForDelete) - { - if (verse.MarkForDeleteResult == CorrectionReviewResult.Approved) - { - - - - - - } - } - else if (verse.NewVerse) - { - if (verse.NewVerseResult == CorrectionReviewResult.Approved) - { - - - - - - } - } - else - { - if (verse.Result == CorrectionReviewResult.Approved) - { - - - - - - - - - - } - - if (verse.SummaryReviewResult == CorrectionReviewResult.Approved) - { - - - - - - - - - - - - - } - - if (verse.VersePosition != null && verse.VersePositionResult == CorrectionReviewResult.Approved) - { - - - - - - - - } - - @if (verse.LanguageId != null && verse.LanguageReviewResult == CorrectionReviewResult.Approved) - { - - - - - - - - - } - - - } - } - - - - - -
@correction.UserId
مشاهدهٔ متن شعر یا بخش
@correction.ReviewDate.ToFriendlyPersianDateTextify()
متن اولیهمتن جدید
-

@correction.OriginalTitle

-
-

@correction.Title

-
-

@correction.OriginalTitle

- -
- خلاصه:

@correction.OriginalPoemSummary

-
-

@correction.PoemSummary

-
-

@correction.OriginalPoemSummary

- -
-

@correction.OriginalRhythm

-
-

@correction.Rhythm

-
-

قافیه: @correction.OriginalRhymeLetters

-
-

@correction.RhymeLetters

-
-

قالب شعری: @RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(correction.OriginalPoemFormat)

-
-

@RMuseum.Services.Implementation.GanjoorPoemFormatConvertor.GetString(correction.PoemFormat)

-
-

@verse.OriginalText

-
-

حذف شد

-
-

@verse.Text

-
-

اضافه شد

-
-

@verse.OriginalText

-
-

@verse.Text

-
-

@verse.OriginalText

- -
- @verse.OriginalText -
- معنی:

@verse.OriginalCoupletSummary

-
-

@verse.CoupletSummary

-
-

@verse.OriginalText

- -
- @verse.OriginalText -
- -

تبدیل نوع مصرع از @RMuseum.Models.Ganjoor.VersePositionHelper.GetVersePositionString((VersePosition)verse.OriginalVersePosition)

-
-

@verse.Text

-

تبدیل نوع مصرع به @RMuseum.Models.Ganjoor.VersePositionHelper.GetVersePositionString((VersePosition)verse.VersePosition)

-
- @verse.OriginalText -
- @if (verse.OriginalLanguageId != null) - { -

تغییر زبان از @Model.Languages.Where(l => l.Id == verse.OriginalLanguageId).Single().Name

- } - else - { -

تغییر زبان از فارسی

- } -
- @if (verse.LanguageId != null) - { -

به @Model.Languages.Where(l => l.Id == verse.LanguageId).Single().Name

- } - else - { -

به فارسی

- } -
 
- برگشت به وضعیت قبل از این ویرایش -
- + }
- - -
} -

- @foreach (var paginationLink in Model.PaginationLinks) + @if (Model.Corrections != null && Model.Corrections.Count > 0) + { + @foreach (var correction in Model.Corrections) { - if (!string.IsNullOrEmpty(paginationLink.Url)) - { - @paginationLink.Name - } - else - { - @paginationLink.Name - } +

+ @if (Model.CanEdit) + { +

🧑 @correction.UserId

+ } +

🔗 مشاهدهٔ متن شعر یا بخش

+

🕘 @correction.ReviewDate.ToFriendlyPersianDateTextify()

+ + + + + + + + @if (correction.Title != null && correction.Result == CorrectionReviewResult.Approved) + { + + + + + + + + + + + } + @if (correction.PoemSummary != null && correction.SummaryReviewResult == CorrectionReviewResult.Approved) + { + + + + + + + + + + + } + @if (correction.Rhythm != null && correction.RhythmResult == CorrectionReviewResult.Approved) + { + + + + + + + } + @if (correction.RhymeLetters != null && correction.RhymeLettersReviewResult == CorrectionReviewResult.Approved) + { + + + + + + + } + @if (correction.PoemFormat != null && correction.PoemFormatReviewResult == CorrectionReviewResult.Approved) + { + + + + + + + } + @if (correction.VerseOrderText != null) + @foreach (var verse in correction.VerseOrderText) + { + @if (verse.MarkForDelete) + { + if (verse.MarkForDeleteResult == CorrectionReviewResult.Approved) + { + + + + + + } + } + else if (verse.NewVerse) + { + if (verse.NewVerseResult == CorrectionReviewResult.Approved) + { + + + + + + } + } + else + { + if (verse.Result == CorrectionReviewResult.Approved) + { + + + + + + + + + + } + + if (verse.SummaryReviewResult == CorrectionReviewResult.Approved) + { + + + + + + + + + + + + + } + + if (verse.VersePosition != null && verse.VersePositionResult == CorrectionReviewResult.Approved) + { + + + + + + + + } + + @if (verse.LanguageId != null && verse.LanguageReviewResult == CorrectionReviewResult.Approved) + { + + + + + + + + + } + } + } +
متن اولیهمتن جدید
+ تغییرات عنوان +
+

@correction.OriginalTitle

+
+

@correction.Title

+
+

@correction.OriginalTitle

+ +
+ تغییرات خلاصه +
+

@correction.OriginalPoemSummary

+
+

@correction.PoemSummary

+
+

@correction.OriginalPoemSummary

+ +
+

@correction.OriginalRhythm

+
+

@correction.Rhythm

+
+

قافیه: @correction.OriginalRhymeLetters

+
+

@correction.RhymeLetters

+
+

قالب شعری: @GanjoorPoemFormatConvertor.GetString(correction.OriginalPoemFormat)

+
+

@GanjoorPoemFormatConvertor.GetString(correction.PoemFormat)

+
+

@verse.OriginalText

+
+

حذف شد

+
+

@verse.Text

+
+

اضافه شد

+
+

@verse.OriginalText

+
+

@verse.Text

+
+

@verse.OriginalText

+ +
+ @verse.OriginalText +
+ معنی:

@verse.OriginalCoupletSummary

+
+

@verse.CoupletSummary

+
+

@verse.OriginalText

+ +
+ @verse.OriginalText +
+ +

تبدیل نوع مصرع از @VersePositionHelper.GetVersePositionString((VersePosition)verse.OriginalVersePosition)

+
+

@verse.Text

+

تبدیل نوع مصرع به @VersePositionHelper.GetVersePositionString((VersePosition)verse.VersePosition)

+
+ @verse.OriginalText +
+ @if (verse.OriginalLanguageId != null) + { +

تغییر زبان از @Model.Languages.Where(l => l.Id == verse.OriginalLanguageId).Single().Name

+ } + else + { +

تغییر زبان از فارسی

+ } +
+ @if (verse.LanguageId != null) + { +

به @Model.Languages.Where(l => l.Id == verse.LanguageId).Single().Name

+ } + else + { +

به فارسی

+ } +
+ + ↩️ برگشت به وضعیت قبل از این ویرایش +
} -

- + } + else + { + + } + @if (Model.PaginationLinks != null && Model.PaginationLinks.Count > 0) + { +
+ @foreach (var paginationLink in Model.PaginationLinks) + { + if (!string.IsNullOrEmpty(paginationLink.Url)) + { + @paginationLink.Name + } + else + { + @paginationLink.Name + } + } +
+ } } diff --git a/GanjooRazor/Areas/User/Pages/SuggestQuoted.cshtml b/GanjooRazor/Areas/User/Pages/SuggestQuoted.cshtml index c8ed89a4..9b365271 100644 --- a/GanjooRazor/Areas/User/Pages/SuggestQuoted.cshtml +++ b/GanjooRazor/Areas/User/Pages/SuggestQuoted.cshtml @@ -8,9 +8,14 @@ await GanjooRazor.Utils.GanjoorSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData); } -

@ViewData["Title"]

+
+

@ViewData["Title"]

+
-

@Html.Raw(Model.LastMessage)

+@if (!string.IsNullOrEmpty(Model.LastMessage)) +{ +
@Html.Raw(Model.LastMessage)
+} @if (Model.GanjoorQuotedPoem != null && Model.Couplets != null) { @@ -95,7 +100,7 @@ if (json.poem == null) { document.getElementById('loading-selection').style.display = 'none'; - alert('صفحه‌ای که انتخاب کرده‌اید حاوی یک شعر نیست.'); + upToast('صفحه‌ای که انتخاب کرده‌اید حاوی یک شعر نیست.', 'error'); selectGanjoorPage(); return; } @@ -127,305 +132,150 @@ }).catch((error) => { document.getElementById('loading-selection').style.display = 'none'; - alert('در انتخاب صفحه خطایی رخ داد. جزئیات بیشتر: ' + error); + upToast('در انتخاب صفحه خطایی رخ داد. جزئیات بیشتر: ' + error, 'error'); selectGanjoorPage(); }); } -
-

- از این طریق می‌توانید نقل قول یک شاعر از یک شاعر دیگر را در گنجور ثبت کنید. توجه داشته باشید که اقتفا (یکسانی قافیه) دلیل کافی بر نقل قول نیست. باید در شعرها حداقل یک مصرع بعینه (با تخفیف تفاوت جزئی واژگان) نقل قول شده باشد. -

+
+

از این طریق می‌توانید نقل قول یک شاعر از یک شاعر دیگر را در گنجور ثبت کنید. توجه داشته باشید که اقتفا (یکسانی قافیه) دلیل کافی بر نقل قول نیست. باید در شعرها حداقل یک مصرع بعینه (با تخفیف تفاوت جزئی واژگان) نقل قول شده باشد.

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ + +
+
+ + +
- - - - - - +
+

اگر شعر مرتبط در گنجور وجود دارد آن را با «گزینش شعر مرتبط» و پیدا کردن آن در صفحه‌ای که باز می‌شود مشخص کنید.

+
+ + + + @if (Model.GanjoorQuotedPoem.RelatedPoemId != null) { - - - +

🔗 مشاهدهٔ شعر مرتبط

} +
+ + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+

اگر شعر مرتبط در گنجور وجود ندارد مصرع اول و دوم مرتبط آن را در کادرهای بعد تایپ کنید.

+
- - - - - - - - - - - - - - - - - - - - - +
+ +

اگر شعر را از طریق دکمهٔ «گزینش شعر مرتبط» انتخاب کرده‌اید کادر زیر را خالی بگذارید.

+ +
+
+ + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ +

اگر شعر را از طریق دکمهٔ «گزینش شعر مرتبط» انتخاب کرده‌اید کادر زیر را خالی بگذارید.

+ +
+
+ + + +
- - - - - - - - - +
+ + + + +
- - - +
+ + +
- +
+ + + +
+
+ + +
+
+ + + +
+
+ + +
+
+ + + + +
-
-
-

- از فهرست زیر بیتی را که نقل قول در آن رخ داده مشخص کنید. -

-
+
+ +
+

از فهرست زیر بیتی را که نقل قول در آن رخ داده مشخص کنید.

+
-
- بیت مرجع از شعر: - - - +

+ بیت مرجع از شعر: + + + +

-
- -
- نقل قول در مصرع اول: -
- -
- نقل قول در مصرع دوم: -
- -
-
-

اگر شعر مرتبط در گنجور وجود دارد آن را با «گزینش شعر مرتبط» و پیدا کردن آن در صفحه‌ای که باز می‌شود مشخص کنید.

+
+ + +
-
-
- -
- -
- گزینش شعر مرتبط - -
- - -
- مشاهدهٔ شعر مرتبط -
- بیت مرتبط: -
- -
-
- اگر شعر مرتبط در گنجور وجود ندارد مصرع اول و دوم مرتبط آن را در کادرهای بعد تایپ کنید. -
-
- مصرع اول مرتبط (خارج از گنجور): -
-
-

- اگر شعر را از طریق دکمهٔ «گزینش شعر مرتبط» انتخاب کرده‌اید کادر زیر را خالی بگذارید. -

-
-
- -
- نقل قول در مصرع اول شعر مرتبط: -
- -
- مصرع دوم مرتبط (خارج از گنجور): -
-
-

- اگر شعر را از طریق دکمهٔ «گزینش شعر مرتبط» انتخاب کرده‌اید کادر زیر را خالی بگذارید. -

-
-
- -
- نقل قول در مصرع دوم شعر مرتبط: -
- - -
- این شعر قدیمی‌تر از شعر مرتبط است: -
- - - -
- منتسب به هر دو شاعر: -
- -
- شاعر: -
- - -
- سالمرگ شاعر: -
- -
- نشانی صفحهٔ شاعر: -
- - -
-
- عنوان شعر: -
- -
- نشانی شعر: -
- - - -
- یادداشت: -
- -
-
-

- نیازی به پیشنهاد معکوس این نقل قول نیست. در صورت تأیید، معکوس آن هم به طور خودکار ایجاد می‌شود. -

-
-
- -

-
+
+ + +
+ +
نیازی به پیشنهاد معکوس این نقل قول نیست. در صورت تأیید، معکوس آن هم به طور خودکار ایجاد می‌شود.
+ +
+ +
+ +
}