#456 imroving pages design
This commit is contained in:
parent
b1fb07c7ff
commit
0f89cd0fc2
@ -666,64 +666,52 @@
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@if (Model.SectionsWithRelated.Count > 0)
|
||||
{
|
||||
<div class="related-images-frame tabcontent" id="rpoems">
|
||||
<div class="century">
|
||||
موارد هم آهنگ <a role="button" title="جمع شود / باز شود" class="cursor-pointer" onclick="switch_section('rpoems-section', 'rpoems-collapse-button')"><i class="notranslate info-buttons expand_circle_down" id="rpoems-collapse-button"></i></a>
|
||||
</div>
|
||||
<div id="rpoems-section">
|
||||
@foreach (var s in Model.SectionsWithRelated)
|
||||
<div class="tabcontent" id="rpoems">
|
||||
@foreach (var s in Model.SectionsWithRelated)
|
||||
{
|
||||
@for (int i = 0; i < Math.Min(5, s.Top6RelatedSections.Length); i++)
|
||||
{
|
||||
@for (int i = 0; i < Math.Min(5, s.Top6RelatedSections.Length); i++)
|
||||
{
|
||||
<div class="inlinesimi">
|
||||
<div class="poet-pic-wrap">
|
||||
<a href="@Html.Raw(s.Top6RelatedSections[i].FullUrl)"><img src="@(GanjooRazor.APIRoot.InternetUrl + s.Top6RelatedSections[i].PoetImageUrl)" alt="@s.Top6RelatedSections[i].PoetName"></a>
|
||||
</div>
|
||||
<div class="inlinesimi-poem-title">
|
||||
<a href="@Html.Raw(s.Top6RelatedSections[i].FullUrl)">@s.Top6RelatedSections[i].FullTitle</a><span></span>
|
||||
</div>
|
||||
<div class="simitext">
|
||||
@Html.Raw(s.Top6RelatedSections[i].HtmlExcerpt)
|
||||
</div>
|
||||
|
||||
@if (s.Top6RelatedSections[i].PoetMorePoemsLikeThisCount > 0 && s.GanjoorMetre != null && !string.IsNullOrEmpty(s.RhymeLetters))
|
||||
{
|
||||
@if (s.Top6RelatedSections[i].PoetMorePoemsLikeThisCount > 20)
|
||||
{
|
||||
<a role="button" class="pagebutton" id="@($"load-more-button-{s.Top6RelatedSections[i].PoetId}-{s.Index}")" href="@Html.Raw($"/simi/?v={Uri.EscapeDataString(s.GanjoorMetre.Rhythm)}&g={Uri.EscapeDataString(s.RhymeLetters)}&a={s.Top6RelatedSections[i].PoetId}")" target="_blank">مشاهدهٔ بیش از @s.Top6RelatedSections[i].PoetMorePoemsLikeThisCount.ToPersianNumbers() مورد هم آهنگ دیگر از @s.Top6RelatedSections[i].PoetName<i class="notranslate info-buttons autorenew"></i></a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a role="button" class="pagebutton" id="@($"load-more-button-{s.Top6RelatedSections[i].PoetId}-{s.Index}")" onclick="loadMoreRelatedFromPoet(@s.Top6RelatedSections[i].PoetId, '@s.GanjoorMetre.Rhythm', '@s.RhymeLetters', '@Model.GanjoorPage.Poem.FullUrl', '@s.Top6RelatedSections[i].FullUrl', @s.Index)">مشاهدهٔ @s.Top6RelatedSections[i].PoetMorePoemsLikeThisCount.ToPersianNumbers() مورد هم آهنگ دیگر از @s.Top6RelatedSections[i].PoetName<i class="notranslate info-buttons autorenew"></i></a>
|
||||
}
|
||||
}
|
||||
<div class="inlinesimi">
|
||||
<div class="poet-pic-wrap">
|
||||
<a href="@Html.Raw(s.Top6RelatedSections[i].FullUrl)"><img src="@(GanjooRazor.APIRoot.InternetUrl + s.Top6RelatedSections[i].PoetImageUrl)" alt="@s.Top6RelatedSections[i].PoetName"></a>
|
||||
</div>
|
||||
<div class="inlinesimi-poem-title">
|
||||
<a href="@Html.Raw(s.Top6RelatedSections[i].FullUrl)">@s.Top6RelatedSections[i].FullTitle</a><span></span>
|
||||
</div>
|
||||
<div class="simitext">
|
||||
@Html.Raw(s.Top6RelatedSections[i].HtmlExcerpt)
|
||||
</div>
|
||||
|
||||
@if (s.Top6RelatedSections[i].PoetMorePoemsLikeThisCount > 0)
|
||||
@if (s.Top6RelatedSections[i].PoetMorePoemsLikeThisCount > 0 && s.GanjoorMetre != null && !string.IsNullOrEmpty(s.RhymeLetters))
|
||||
{
|
||||
<div id=@($"more-related-placeholder-{s.Top6RelatedSections[i].PoetId}-{s.Index}")></div>
|
||||
@if (s.Top6RelatedSections[i].PoetMorePoemsLikeThisCount > 20)
|
||||
{
|
||||
<a role="button" class="pagebutton" id="@($"load-more-button-{s.Top6RelatedSections[i].PoetId}-{s.Index}")" href="@Html.Raw($"/simi/?v={Uri.EscapeDataString(s.GanjoorMetre.Rhythm)}&g={Uri.EscapeDataString(s.RhymeLetters)}&a={s.Top6RelatedSections[i].PoetId}")" target="_blank">مشاهدهٔ بیش از @s.Top6RelatedSections[i].PoetMorePoemsLikeThisCount.ToPersianNumbers() مورد هم آهنگ دیگر از @s.Top6RelatedSections[i].PoetName<i class="notranslate info-buttons autorenew"></i></a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a role="button" class="pagebutton" id="@($"load-more-button-{s.Top6RelatedSections[i].PoetId}-{s.Index}")" onclick="loadMoreRelatedFromPoet(@s.Top6RelatedSections[i].PoetId, '@s.GanjoorMetre.Rhythm', '@s.RhymeLetters', '@Model.GanjoorPage.Poem.FullUrl', '@s.Top6RelatedSections[i].FullUrl', @s.Index)">مشاهدهٔ @s.Top6RelatedSections[i].PoetMorePoemsLikeThisCount.ToPersianNumbers() مورد هم آهنگ دیگر از @s.Top6RelatedSections[i].PoetName<i class="notranslate info-buttons autorenew"></i></a>
|
||||
}
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (s.Top6RelatedSections.Length == 6 && s.GanjoorMetre != null)
|
||||
@if (s.Top6RelatedSections[i].PoetMorePoemsLikeThisCount > 0)
|
||||
{
|
||||
<div id="more-related-placeholder-@s.Index"></div>
|
||||
<div id="load-more-related-@s.Index">
|
||||
<a role="button" class="pagebutton" id="load-more-button-@s.Index" onclick="loadMoreRelatedPoems(@Model.GanjoorPage.Poem.Id, 5, '@s.GanjoorMetre.Rhythm', '@s.RhymeLetters', '@Model.GanjoorPage.Poem.FullUrl', @s.Index)">بیشتر<i class="notranslate info-buttons autorenew"></i></a>
|
||||
</div>
|
||||
<div id=@($"more-related-placeholder-{s.Top6RelatedSections[i].PoetId}-{s.Index}")></div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (s.Top6RelatedSections.Length == 6 && s.GanjoorMetre != null)
|
||||
{
|
||||
<div id="more-related-placeholder-@s.Index"></div>
|
||||
<div id="load-more-related-@s.Index">
|
||||
<a role="button" class="pagebutton" id="load-more-button-@s.Index" onclick="loadMoreRelatedPoems(@Model.GanjoorPage.Poem.Id, 5, '@s.GanjoorMetre.Rhythm', '@s.RhymeLetters', '@Model.GanjoorPage.Poem.FullUrl', @s.Index)">بیشتر<i class="notranslate info-buttons autorenew"></i></a>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user