@page @model GanjooRazor.Pages.QuotesModel @{ Layout = "_Layout"; } @if (!string.IsNullOrEmpty(Model.LastError)) { @Model.LastError } else {
@if(Model.Poet != null) {
@Html.Raw(Model.Poet.Nickname)
}

@ViewData["Title"]

@if (Model.Quotes.Count == 0 && Model.ClaimedQuotes.Count == 0) {

نقل قولی یافت نشد.

} else { @if(Model.ClaimedQuotes.Count > 0) {
موارد منتسب به شاعران دیگر
    @foreach (var quotedPoem in Model.ClaimedQuotes) {
  1. @quotedPoem.Poem.FullTitle :: @if (string.IsNullOrEmpty(quotedPoem.CachedRelatedPoemFullUrl)) { @quotedPoem.CachedRelatedPoemFullTitle } else { @quotedPoem.CachedRelatedPoemFullTitle }

    @quotedPoem.Poem.FullTitle: @quotedPoem.CoupletVerse1 - @quotedPoem.CoupletVerse2

    @if (string.IsNullOrEmpty(quotedPoem.CachedRelatedPoemFullUrl)) { @(quotedPoem.CachedRelatedPoemFullTitle): } else { @quotedPoem.CachedRelatedPoemFullTitle: } @quotedPoem.RelatedCoupletVerse1 - @quotedPoem.RelatedCoupletVerse2

  2. }

نقل قول‌های دیگر
}
    @foreach (var quotedPoem in Model.Quotes) {
  1. @quotedPoem.Poem.FullTitle :: @if (string.IsNullOrEmpty(quotedPoem.CachedRelatedPoemFullUrl)) { @quotedPoem.CachedRelatedPoemFullTitle } else { @quotedPoem.CachedRelatedPoemFullTitle }

    @quotedPoem.Poem.FullTitle: @quotedPoem.CoupletVerse1 - @quotedPoem.CoupletVerse2

    @if (string.IsNullOrEmpty(quotedPoem.CachedRelatedPoemFullUrl)) { @quotedPoem.CachedRelatedPoemFullTitle: } else { @quotedPoem.CachedRelatedPoemFullTitle: } @quotedPoem.RelatedCoupletVerse1 - @quotedPoem.RelatedCoupletVerse2

  2. }

}
@if (ViewData["TrackingScript"] != null && !string.IsNullOrEmpty(ViewData["TrackingScript"].ToString())) { @Html.Raw(ViewData["TrackingScript"]) } }