From 8b65c04a5154ab05ae1c0b88e0b7501c3870aa62 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Thu, 19 May 2022 21:16:49 +0430 Subject: [PATCH] docs: #321 make exact search more accessible --- GanjooRazor/Pages/Search.cshtml | 22 ++++++++++++++++--- GanjooRazor/Pages/Search.cshtml.cs | 34 +++++++++++++++++++++++++++++- 2 files changed, 52 insertions(+), 4 deletions(-) diff --git a/GanjooRazor/Pages/Search.cshtml b/GanjooRazor/Pages/Search.cshtml index 1a3caaf2..34a51e87 100644 --- a/GanjooRazor/Pages/Search.cshtml +++ b/GanjooRazor/Pages/Search.cshtml @@ -118,7 +118,7 @@ - + @@ -130,6 +130,22 @@
 
+ @if (!string.IsNullOrEmpty(Model.AlternativeSearchPhrase)) + { + if (Model.Quoted) + { +
+ @Model.AlternativeSearchPhraseDescription +
+ } + else + { +
+ @Model.AlternativeSearchPhraseDescription +
+ } + } + @if (Model.Poems == null) {
@@ -190,8 +206,8 @@ @if (!string.IsNullOrEmpty(ViewData["GoogleAnalyticsCode"].ToString())) {