diff --git a/GanjooRazor/Areas/User/Pages/Editor.cshtml b/GanjooRazor/Areas/User/Pages/Editor.cshtml index 1ec10155..ca24b7ea 100644 --- a/GanjooRazor/Areas/User/Pages/Editor.cshtml +++ b/GanjooRazor/Areas/User/Pages/Editor.cshtml @@ -120,6 +120,7 @@ // staged client-side until the main save; each item matches // GanjoorPoemGeoDateTagCorrection's shape so it can be sent as-is var geoDateTagSuggestions = @Html.Raw(Model.MyLastEdit != null && Model.MyLastEdit.GeoDateTags != null ? Newtonsoft.Json.JsonConvert.SerializeObject(Model.MyLastEdit.GeoDateTags, new Newtonsoft.Json.JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver() }) : "[]"); + var geoDateTagCoupletTexts = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model.Couplets.ToDictionary(c => c.Item1.ToString(), c => c.Item2))); $(document).ready(function () { renderPendingGeoDateTags(); }); @@ -153,12 +154,13 @@ container.innerHTML = ''; return; } - var html = '
| وضعیت | مکان | سال | ماه | روز | # | ||||
|---|---|---|---|---|---|---|---|---|---|
| وضعیت | بیت | مکان | سال | ماه | روز | # |
|---|---|---|---|---|---|---|
| ' + status + ' | ' + locationText + ' | ' + (s.lunarYear || '') + ' | ' + (s.lunarMonth || '') + ' | ' + (s.lunarDay || '') + ' | ' + + html += '||
| ' + status + ' | ' + coupletText + ' | ' + locationText + ' | ' + (s.lunarYear || '') + ' | ' + (s.lunarMonth || '') + ' | ' + (s.lunarDay || '') + ' | ' + '✕ حذف از فهرست |
بیت: @(geoDateTag.CoupletIndex != null ? (Model.Couplets.Where(c => c.Item1 == geoDateTag.CoupletIndex).Select(c => c.Item2).FirstOrDefault() ?? "— کل شعر —") : "— کل شعر —")
@if (geoDateTag.MarkForDelete) {درخواست حذف برچسب موجود (#@geoDateTag.ExistingTagId)
@@ -1756,6 +1762,7 @@ else {| بیت | مکان | سال | ماه | @@ -1765,6 +1772,7 @@ else @foreach (var tag in Model.PoemGeoDateTags) {
|---|---|---|---|
| @(Model.Couplets.Where(c => c.Item1 == tag.CoupletIndex).Select(c => c.Item2).FirstOrDefault() ?? "— کل شعر —") | @($"{(tag.Location == null ? "" : tag.Location.Name)}") | @tag.LunarYear |
@@ -1833,6 +1841,18 @@ else
+
+
+
+
+
اگر این برچسب به یک بیت مشخص اشاره دارد، آن را انتخاب کنید تا دیگران بتوانند شاهد آن را در متن پیدا کنند. + |