diff --git a/GanjooRazor/Pages/AudioClip.cshtml b/GanjooRazor/Pages/AudioClip.cshtml index a447f7fc..7f99b956 100644 --- a/GanjooRazor/Pages/AudioClip.cshtml +++ b/GanjooRazor/Pages/AudioClip.cshtml @@ -155,166 +155,163 @@ @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) { + + } } diff --git a/GanjooRazor/Pages/FAQ.cshtml b/GanjooRazor/Pages/FAQ.cshtml index b8e65c2f..d9d4f3b9 100644 --- a/GanjooRazor/Pages/FAQ.cshtml +++ b/GanjooRazor/Pages/FAQ.cshtml @@ -48,7 +48,7 @@ - + @@ -109,17 +109,14 @@ @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) { + + } } diff --git a/GanjooRazor/Pages/Hashieha.cshtml b/GanjooRazor/Pages/Hashieha.cshtml index ef893252..6bc4ecee 100644 --- a/GanjooRazor/Pages/Hashieha.cshtml +++ b/GanjooRazor/Pages/Hashieha.cshtml @@ -85,7 +85,7 @@ - + @@ -97,47 +97,47 @@ - -
-

- - @Model.Title - -

- @if (Model.Profile != null) - { -
- همهٔ حاشیه‌ها -
-
-

- @Model.Profile.NickName +

+
+

+ + @Model.Title + +

+ @if (Model.Profile != null) + { + +
+

+ @Model.Profile.NickName - @if (!string.IsNullOrEmpty(Model.Profile.Website)) + @if (!string.IsNullOrEmpty(Model.Profile.Website)) + { + 🌐 + } + + @if (Model.CanAdministerUsers) + { + # + } +

+ + @if (!string.IsNullOrEmpty(Model.Profile.Bio)) { - 🌐 - } - - @if (Model.CanAdministerUsers) - { - # - } -

- - @if (!string.IsNullOrEmpty(Model.Profile.Bio)) - { @Html.Raw(Model.Profile.Bio) - } -
-
- } + } +
+
+ } @if (Model.Comments.Count == 0) {

حاشیه‌ای با مشخصات مورد نظر شما پیدا نشد.

@@ -145,37 +145,37 @@ else foreach (var comment in Model.Comments) { -

- @if (comment.UserId == null) - { - @comment.AuthorName - } - else - { - @comment.AuthorName - } - - در @comment.CommentDate.ToFriendlyPersianDateTextify() - @if (comment.InReplyTo != null) - { - - @(" ")در پاسخ به @comment.InReplyTo.AuthorName - - } - - @(" ")دربارهٔ @comment.Poem.Title: -

- @if (comment.CoupletIndex != -1) +

+ @if (comment.UserId == null) { -

- @comment.CoupletSummary -
+ @comment.AuthorName } -
- @Html.Raw(comment.HtmlComment) -
-
 
-
+ else + { + @comment.AuthorName + } + + در @comment.CommentDate.ToFriendlyPersianDateTextify() + @if (comment.InReplyTo != null) + { + + @(" ")در پاسخ به @comment.InReplyTo.AuthorName + + } + + @(" ")دربارهٔ @comment.Poem.Title: +

+ @if (comment.CoupletIndex != -1) + { +
+ @comment.CoupletSummary +
+ } +
+ @Html.Raw(comment.HtmlComment) +
+
 
+
}
@@ -197,17 +197,14 @@ @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) { + + } } diff --git a/GanjooRazor/Pages/Index.cshtml b/GanjooRazor/Pages/Index.cshtml index 1855420e..7bab23f9 100644 --- a/GanjooRazor/Pages/Index.cshtml +++ b/GanjooRazor/Pages/Index.cshtml @@ -22,7 +22,7 @@ - @if(Model.GanjoorPage != null && Model.GanjoorPage.NoIndex) + @if (Model.GanjoorPage != null && Model.GanjoorPage.NoIndex) { } @@ -33,11 +33,11 @@ } else { - + if (Model.IsPoemPage) { @@ -152,8 +152,8 @@ if (!string.IsNullOrEmpty(Model.PinterestUrl)) { } @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) { + + } diff --git a/GanjooRazor/Pages/Map.cshtml b/GanjooRazor/Pages/Map.cshtml index bdc179be..28b24042 100644 --- a/GanjooRazor/Pages/Map.cshtml +++ b/GanjooRazor/Pages/Map.cshtml @@ -42,7 +42,7 @@ color: '#300', } - $.getJSON(myGeoJSONPath, function (data) { + $.getJSON(myGeoJSONPath, function(data) { var map = L.map('map').setView([34, 53.6880], 5); @@ -59,13 +59,13 @@ poetsgroups = @(Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model.PoetGroupsWithBirthPlaces, Newtonsoft.Json.Formatting.Indented))); var popup = new L.Popup(); - oms.addListener('click', function (marker) { + oms.addListener('click', function(marker) { var poetDesc = marker.desc; var index = $('#rangeInput').val(); for (var i = 0; i < poetsgroups[index].Poets.length; i++) { if (poetsgroups[index].Poets[i].Name == marker.desc) { - poetDesc = '' + poetsgroups[index].Poets[i].Name + '' + poetDesc = '' + poetsgroups[index].Poets[i].Name + '' break; } } @@ -104,8 +104,8 @@ } }); - $(function () { - $('#rangeInput').on('input change', function () { + $(function() { + $('#rangeInput').on('input change', function() { var val = $(this).val(); if (val >= 0 && val < poetsgroups.length) { $('#rangeText').text(poetsgroups[val].Name); @@ -142,7 +142,7 @@ @if (!string.IsNullOrEmpty(Model.LastError)) { -

@Model.LastError

+

@Model.LastError

} else { @@ -158,17 +158,14 @@ @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) { + + } } diff --git a/GanjooRazor/Pages/Search.cshtml b/GanjooRazor/Pages/Search.cshtml index baf45f78..a51d43e1 100644 --- a/GanjooRazor/Pages/Search.cshtml +++ b/GanjooRazor/Pages/Search.cshtml @@ -205,17 +205,14 @@ @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) { + + } } diff --git a/GanjooRazor/Pages/Simi.cshtml b/GanjooRazor/Pages/Simi.cshtml index 165bed2a..1daff989 100644 --- a/GanjooRazor/Pages/Simi.cshtml +++ b/GanjooRazor/Pages/Simi.cshtml @@ -84,7 +84,7 @@ - + @@ -156,7 +156,7 @@ - + @if (Model.Poems == null) {
@@ -164,7 +164,7 @@
} else - if (Model.Poems.Count == 0) + if (Model.Poems.Count == 0) {

شعری با مشخصات مورد نظر شما پیدا نشد.

@@ -207,17 +207,14 @@ @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) { + + } } diff --git a/GanjooRazor/Pages/Trans.cshtml b/GanjooRazor/Pages/Trans.cshtml index deb26d3c..9751ae4b 100644 --- a/GanjooRazor/Pages/Trans.cshtml +++ b/GanjooRazor/Pages/Trans.cshtml @@ -64,7 +64,7 @@ } diff --git a/GanjooRazor/Pages/random.cshtml b/GanjooRazor/Pages/random.cshtml index 2ba04b03..156c9765 100644 --- a/GanjooRazor/Pages/random.cshtml +++ b/GanjooRazor/Pages/random.cshtml @@ -32,17 +32,14 @@ @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) { + + }