178 lines
7.8 KiB
Plaintext
178 lines
7.8 KiB
Plaintext
@page
|
|
@model GanjooRazor.Pages.QuotesModel
|
|
@{
|
|
Layout = "_Layout";
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.LastError))
|
|
{
|
|
@Model.LastError
|
|
}
|
|
else
|
|
{
|
|
<div id="hdr2" class="clearfix">
|
|
<h1><a href="/" title="گنجور"><img src="/image/gdapk.png" alt="گنجور" /></a></h1>
|
|
<div class="actionbox">
|
|
<form action="/search" method="get" id="searchform">
|
|
<input type="text" name="s" id="s" class="inputText" value="" placeholder="جستجو" />
|
|
<input type="hidden" name="es" id="es" value="1" />
|
|
<select name="author" id="author" onchange="onSelectedPoetChanged()">
|
|
|
|
@{
|
|
if (Model.Poet != null)
|
|
{
|
|
<option value="0">در آثار همهٔ سخنوران</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="0" selected>در آثار همهٔ سخنوران</option>
|
|
}
|
|
|
|
if (Model.Poets != null)
|
|
{
|
|
foreach (RMuseum.Models.Ganjoor.ViewModels.GanjoorPoetViewModel poet in Model.Poets)
|
|
{
|
|
if(Model.Poet != null && Model.Poet.Id == poet.Id)
|
|
{
|
|
<option value="@poet.Id" selected>@poet.Nickname</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@poet.Id">@poet.Nickname</option>
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
</select>
|
|
<input type="submit" value="بیاب" />
|
|
</form>
|
|
</div><!-- .actionbox -->
|
|
</div>
|
|
|
|
<!-- #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>
|
|
|
|
<script src="/js/vaabd.js?version=10"></script>
|
|
|
|
@if (ViewData["TrackingScript"] != null && !string.IsNullOrEmpty(ViewData["TrackingScript"].ToString()))
|
|
{
|
|
@Html.Raw(ViewData["TrackingScript"])
|
|
}
|
|
|
|
}
|
|
|
|
|