- public data import ran with empty HtmlText for poet/category pages (upstream fills it with a separate admin TOC job), so poet pages showed no works; the import now regenerates tables of contents for the importing user - replace Ganjoor's logo image (gdap/gdapk) with the Divan wordmark on all pages; delete it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
93 lines
3.9 KiB
Plaintext
93 lines
3.9 KiB
Plaintext
@model DivanRazor.Pages._SearchHeaderPartialModel
|
|
<div id="hdr2" class="clearfix">
|
|
<h1><a href="/" title="دیوان"><span class="divan-wordmark divan-wordmark--sm">دیوان</span></a></h1>
|
|
<div class="actionbox">
|
|
<form action="/search" method="get" id="searchform">
|
|
<input type="text" name="s" id="s" class="inputText" value="@Model.SearchQuery" placeholder="تلاش" />
|
|
@if (Model.ShowExactSearchHiddenField)
|
|
{
|
|
<input type="hidden" name="es" id="es" value="1" />
|
|
}
|
|
<select name="author" id="author" onchange="onSelectedPoetChanged()">
|
|
@{
|
|
if (Model.SelectedPoetId != 0)
|
|
{
|
|
<option value="0">تمام شعرا کے کلام میں</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="0" selected>تمام شعرا کے کلام میں</option>
|
|
}
|
|
|
|
if (Model.Poets != null)
|
|
{
|
|
foreach (var poet in Model.Poets)
|
|
{
|
|
if (poet.Id == Model.SelectedPoetId)
|
|
{
|
|
<option value="@poet.Id" selected>@Html.Raw(poet.Nickname)</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@poet.Id">@Html.Raw(poet.Nickname)</option>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</select>
|
|
@if (Model.CurrentCategory != null)
|
|
{
|
|
<select name="cat" id="cat" style="@(Model.WideCategorySelect ? "width:150px" : "")">
|
|
@{
|
|
var effectiveSelectedCatId = Model.SelectedCategoryId ?? Model.CurrentCategory.Id;
|
|
|
|
if (effectiveSelectedCatId == 0)
|
|
{
|
|
<option value="0" selected>تمام حصوں میں</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="0">تمام حصوں میں</option>
|
|
}
|
|
|
|
foreach (var gran in Model.CurrentCategory.Ancestors)
|
|
{
|
|
if (effectiveSelectedCatId == gran.Id)
|
|
{
|
|
<option value="@gran.Id" selected>@Html.Raw(gran.Title)</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@gran.Id">@Html.Raw(gran.Title)</option>
|
|
}
|
|
}
|
|
|
|
if (effectiveSelectedCatId == Model.CurrentCategory.Id)
|
|
{
|
|
<option value="@Model.CurrentCategory.Id" selected>@Html.Raw(Model.CurrentCategory.Title)</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@Model.CurrentCategory.Id">@Html.Raw(Model.CurrentCategory.Title)</option>
|
|
}
|
|
|
|
foreach (var child in Model.CurrentCategory.Children)
|
|
{
|
|
if (effectiveSelectedCatId == child.Id)
|
|
{
|
|
<option value="@child.Id" selected>@Html.Raw(child.Title)</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@child.Id">@Html.Raw(child.Title)</option>
|
|
}
|
|
}
|
|
}
|
|
</select>
|
|
}
|
|
|
|
<input type="submit" value="تلاش کریں" />
|
|
</form>
|
|
</div><!-- .actionbox -->
|
|
</div><!-- #hdr2 -->
|