divan/DiwanRazor/Pages/Quotes.cshtml
Anas Rashid 020b010483 Urdu public pages, batch 2 (#2): auth, errors, map, FAQ, similar poems, people pages, page titles
- translate remaining public views and page-model strings (titles, messages, relation names)
- Urdu stopword list for word-frequency stats (replaces Persian list)
- error pages: drop list of alternative Ganjoor services

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 00:22:09 +02:00

139 lines
5.9 KiB
Plaintext

@page
@model DiwanRazor.Pages.QuotesModel
@{
Layout = "_Layout";
}
@if (!string.IsNullOrEmpty(Model.LastError))
{
@Model.LastError
}
else
{
<partial name="_SearchHeaderPartial" model="@(new _SearchHeaderPartialModel(){ Poets = Model.Poets, SelectedPoetId = Model.Poet?.Id ?? 0 })" />
<!-- #hdr2 -->
<div id="fa">
<partial name="_InlineLoginPartial" model="Model" />
<div id="maincnt">
<div class="poem">
@if(Model.Poet != null)
{
<div id="poet-image">
<a href="@Html.Raw(Model.Poet.FullUrl)"><img src="@Model.Poet.ImageUrl" alt="@Html.Raw(Model.Poet.Nickname)"></a>
</div>
}
<h2>
@ViewData["Title"]
</h2>
@if (Model.Quotes.Count == 0 && Model.ClaimedQuotes.Count == 0)
{
<p>کوئی اقتباس نہیں ملا.</p>
}
else
{
@if(Model.ClaimedQuotes.Count > 0)
{
<div class="century">دیگر شعرا سے منسوب</div>
<ol>
@foreach (var quotedPoem in Model.ClaimedQuotes)
{
<li>
<h3>
<a href="@quotedPoem.Poem.FullUrl">@quotedPoem.Poem.FullTitle</a> ::
@if (string.IsNullOrEmpty(quotedPoem.CachedRelatedPoemFullUrl))
{
@quotedPoem.CachedRelatedPoemFullTitle
}
else
{
<a href="@quotedPoem.CachedRelatedPoemFullUrl">@quotedPoem.CachedRelatedPoemFullTitle</a>
}
</h3>
<p>
<a href="@quotedPoem.Poem.FullUrl">@quotedPoem.Poem.FullTitle</a>: @quotedPoem.CoupletVerse1 - @quotedPoem.CoupletVerse2
</p>
<p>
@if (string.IsNullOrEmpty(quotedPoem.CachedRelatedPoemFullUrl))
{
@(quotedPoem.CachedRelatedPoemFullTitle)<text>: </text>
}
else
{
<a href="@quotedPoem.CachedRelatedPoemFullUrl">@quotedPoem.CachedRelatedPoemFullTitle</a><text>: </text>
}
@quotedPoem.RelatedCoupletVerse1 - @quotedPoem.RelatedCoupletVerse2
</p>
</li>
}
</ol>
<br class="clear-both" />
<div class="century">دیگر اقتباسات</div>
}
<ol>
@foreach (var quotedPoem in Model.Quotes)
{
<li>
<h3>
<a href="@quotedPoem.Poem.FullUrl">@quotedPoem.Poem.FullTitle</a> ::
@if (string.IsNullOrEmpty(quotedPoem.CachedRelatedPoemFullUrl))
{
@quotedPoem.CachedRelatedPoemFullTitle
}
else
{
<a href="@quotedPoem.CachedRelatedPoemFullUrl">@quotedPoem.CachedRelatedPoemFullTitle</a>
}
</h3>
<p>
<a href="@quotedPoem.Poem.FullUrl">@quotedPoem.Poem.FullTitle</a>: @quotedPoem.CoupletVerse1 - @quotedPoem.CoupletVerse2
</p>
<p>
@if (string.IsNullOrEmpty(quotedPoem.CachedRelatedPoemFullUrl))
{
@quotedPoem.CachedRelatedPoemFullTitle<text>: </text>
}
else
{
<a href="@quotedPoem.CachedRelatedPoemFullUrl">@quotedPoem.CachedRelatedPoemFullTitle</a><text>: </text>
}
@quotedPoem.RelatedCoupletVerse1 - @quotedPoem.RelatedCoupletVerse2
</p>
</li>
}
</ol>
<br class="clear-both" />
}
</div>
</div>
<partial name="_FooterPartial" model=@(new _FooterPartialModel(){StickyEnabled = true}) />
</div>
@if (ViewData["TrackingScript"] != null && !string.IsNullOrEmpty(ViewData["TrackingScript"].ToString()))
{
@Html.Raw(ViewData["TrackingScript"])
}
}