From 4a3396b1a7c0d50889afa6c0ae9521ace0734694 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sun, 3 Jul 2022 20:10:03 +0430 Subject: [PATCH] docs: #339 navbar on all pages --- GanjooRazor/Pages/FAQ.cshtml | 17 +- GanjooRazor/Pages/Hashieha.cshtml | 15 +- GanjooRazor/Pages/Index.cshtml | 7 +- GanjooRazor/Pages/Photos.cshtml | 263 ++++++++++--------- GanjooRazor/Pages/Search.cshtml | 15 +- GanjooRazor/Pages/Simi.cshtml | 15 +- GanjooRazor/Pages/_InlineLoginPartial.cshtml | 13 +- GanjooRazor/wwwroot/css/p8.css | 4 +- 8 files changed, 199 insertions(+), 150 deletions(-) diff --git a/GanjooRazor/Pages/FAQ.cshtml b/GanjooRazor/Pages/FAQ.cshtml index b965a228..f5f15bdf 100644 --- a/GanjooRazor/Pages/FAQ.cshtml +++ b/GanjooRazor/Pages/FAQ.cshtml @@ -15,6 +15,15 @@ + + + @@ -52,6 +61,10 @@
+ + + +

@@ -96,14 +109,12 @@

- +
- - @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) diff --git a/GanjooRazor/Pages/Hashieha.cshtml b/GanjooRazor/Pages/Hashieha.cshtml index c587f76d..52637b4d 100644 --- a/GanjooRazor/Pages/Hashieha.cshtml +++ b/GanjooRazor/Pages/Hashieha.cshtml @@ -17,6 +17,15 @@ + + + @@ -90,6 +99,8 @@
+ +
@@ -184,14 +195,12 @@
-
- - + @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) diff --git a/GanjooRazor/Pages/Index.cshtml b/GanjooRazor/Pages/Index.cshtml index 81482e8b..26ee9e54 100644 --- a/GanjooRazor/Pages/Index.cshtml +++ b/GanjooRazor/Pages/Index.cshtml @@ -244,12 +244,7 @@ } } - if (Model.IsHomePage) - { - - } + } diff --git a/GanjooRazor/Pages/Photos.cshtml b/GanjooRazor/Pages/Photos.cshtml index 422824c2..40fa7aaf 100644 --- a/GanjooRazor/Pages/Photos.cshtml +++ b/GanjooRazor/Pages/Photos.cshtml @@ -16,29 +16,36 @@ + @if (Model.Poet != null) { - } + $.ajax({ + type: "DELETE", + url: '?Handler=SpecLine', + data: { + id: id + }, + error: function(e) { + if (e.responseText == null) + alert(e); + else + alert(e.responseText); + }, + success: function() { + location.reload(); + }, + }); + } + + } @foreach (var line in Model.SpecLines) { @@ -253,49 +262,49 @@ } @@ -358,67 +367,67 @@
@if (Model.LoggedIn) { - @if(string.IsNullOrEmpty(Model.LastError) && Model.UploadedPhoto == null) + @if (string.IsNullOrEmpty(Model.LastError) && Model.UploadedPhoto == null) { -
-
- 💬 شما تصویر تازه‌ای پیشنهاد کنید ... - - - - - - - - - - - - - - - - - - - + +
+ 💬 شما تصویر تازه‌ای پیشنهاد کنید ... +
- تصویر: -
-
- -
- -
- عنوان: -
- -
- توضیح: -
- -
+ + + + + + + + + + + + + + + + + + - - - -
+ تصویر: +
+
+ +
+ +
+ عنوان: +
+ +
+ توضیح: +
+ +
- -
+ + + + + + -
-

- تصاویر پیشنهادی پس از بررسی منتشر می‌شوند. -

-
-
-
+
+

+ تصاویر پیشنهادی پس از بررسی منتشر می‌شوند. +

+
+ + } else { بارگذاری تصویر دیگر } - + } else { @@ -436,7 +445,7 @@
- +
diff --git a/GanjooRazor/Pages/Search.cshtml b/GanjooRazor/Pages/Search.cshtml index b16c33a4..4b9a362f 100644 --- a/GanjooRazor/Pages/Search.cshtml +++ b/GanjooRazor/Pages/Search.cshtml @@ -18,6 +18,15 @@ + + + @@ -127,6 +136,8 @@
+ +
 
@if (!string.IsNullOrEmpty(Model.AlternativeSearchPhrase)) @@ -192,14 +203,12 @@
- - - + @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) diff --git a/GanjooRazor/Pages/Simi.cshtml b/GanjooRazor/Pages/Simi.cshtml index 7ff16654..24c31a40 100644 --- a/GanjooRazor/Pages/Simi.cshtml +++ b/GanjooRazor/Pages/Simi.cshtml @@ -16,6 +16,15 @@ + + + @@ -91,6 +100,8 @@
+ +
-
- - + @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) diff --git a/GanjooRazor/Pages/_InlineLoginPartial.cshtml b/GanjooRazor/Pages/_InlineLoginPartial.cshtml index 8aefe85e..c5c6fedc 100644 --- a/GanjooRazor/Pages/_InlineLoginPartial.cshtml +++ b/GanjooRazor/Pages/_InlineLoginPartial.cshtml @@ -37,6 +37,7 @@
ادامهٔ مطالعه +
@@ -73,7 +74,15 @@
-@if (!Model.LoggedIn) +@if (Model.LoggedIn) +{ + + + +} +else { } diff --git a/GanjooRazor/wwwroot/css/p8.css b/GanjooRazor/wwwroot/css/p8.css index 87b827bb..439c503a 100644 --- a/GanjooRazor/wwwroot/css/p8.css +++ b/GanjooRazor/wwwroot/css/p8.css @@ -1650,8 +1650,8 @@ audio { .visible-notification-badge { position: absolute; - top: -5px; - right: -5px; + top: 0px; + right: 0px; padding: 1px 1px; border-radius: 100%; background: red none repeat scroll 0% 0%;