diff --git a/GanjooRazor/Pages/Search.cshtml b/GanjooRazor/Pages/Search.cshtml index 2bb96a20..df7315c7 100644 --- a/GanjooRazor/Pages/Search.cshtml +++ b/GanjooRazor/Pages/Search.cshtml @@ -202,7 +202,7 @@
- «@Model.Term» در مجموع @RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.WordStats.Sum(w => w.Count)) بار در گنجور ظاهر شده است که سهم هر سخنور در جدول زیر مشخص شده است. + «@Model.Term» در مجموع @RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.WordStats.Sum(w => w.Count)) بار طبق جدول زیر در @Model.SectionName ظاهر شده است:
| @((i + 1).ToPersianNumbers()) | -@Model.WordStats[i].Name | +@Model.WordStats[i].Name | @RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.WordStats[i].Count) | @if (Model.WordStats[i].TotalWordCount == 0) { @@ -40,7 +40,7 @@ {
| @((i + 1).ToPersianNumbers()) | -@Model.WordStats[i].Name | +@Model.WordStats[i].Name | @RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.WordStats[i].Count) | @if (Model.WordStats[i].TotalWordCount == 0) { diff --git a/GanjooRazor/Pages/_WordCountsByPoetPartial.cshtml.cs b/GanjooRazor/Pages/_WordCountsByPoetPartial.cshtml.cs index 242766e8..16b4af15 100644 --- a/GanjooRazor/Pages/_WordCountsByPoetPartial.cshtml.cs +++ b/GanjooRazor/Pages/_WordCountsByPoetPartial.cshtml.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; +using Microsoft.AspNetCore.Mvc.RazorPages; using RMuseum.Models.Ganjoor.ViewModels; namespace GanjooRazor.Pages @@ -7,5 +7,13 @@ namespace GanjooRazor.Pages { public string Term { get; set; } public PoetOrCatWordStat[] WordStats { get; set; } + public bool Whole { get; set; } + public string SectionName + { + get + { + return Whole ? "گنجور" : "این بخش"; + } + } } }