diff --git a/GanjooRazor/Pages/_AudioPlayerPartial.cshtml b/GanjooRazor/Pages/_AudioPlayerPartial.cshtml index 055796da..9213b077 100644 --- a/GanjooRazor/Pages/_AudioPlayerPartial.cshtml +++ b/GanjooRazor/Pages/_AudioPlayerPartial.cshtml @@ -8,7 +8,7 @@ @for (var nRecitationIndex = 0; nRecitationIndex < Model.Recitations.Length; nRecitationIndex++) { var recitaion = Model.Recitations[nRecitationIndex]; -
+
+ + @if (nRecitationIndex == 4 && Model.Recitations.Length > 5) + { + همهٔ خوانش‌هاautorenew + } }
diff --git a/GanjooRazor/Pages/_AudioPlayerPartial.cshtml.cs b/GanjooRazor/Pages/_AudioPlayerPartial.cshtml.cs index e1514a08..3452f97e 100644 --- a/GanjooRazor/Pages/_AudioPlayerPartial.cshtml.cs +++ b/GanjooRazor/Pages/_AudioPlayerPartial.cshtml.cs @@ -40,5 +40,10 @@ namespace GanjooRazor.Pages return audiodesc; } + + public string CSSClass(int recitationIndex) + { + return recitationIndex < 5 ? "audio-player" : "hidden-item"; + } } } diff --git a/GanjooRazor/wwwroot/css/p8.css b/GanjooRazor/wwwroot/css/p8.css index 557acb2d..0952ce52 100644 --- a/GanjooRazor/wwwroot/css/p8.css +++ b/GanjooRazor/wwwroot/css/p8.css @@ -1126,4 +1126,12 @@ ol { .audio-player{ +} + +.recitaion-info{ + +} + +.hidden-item { + display: none; } \ No newline at end of file