divan/DiwanRazor/Pages/Recitations/RecitationsOrder.cshtml
Anas Rashid e8f2306422 Rename Ganjoor -> Diwan throughout the code
Projects (GanjooRazor -> DiwanRazor, GanjoorService.sln -> DiwanService.sln), files,
folders, classes, namespaces, settings, API routes (/api/diwan) and DB tables (Diwan*).
External addresses (ganjoor.net, github.com/ganjoor) unchanged. Migrations renamed
consistently (no pending model changes); requires a fresh database.
Upstream RUNNING_LOCALLY/SEMANTIC_SEARCH docs archived unmodified under docs/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:49:01 +02:00

97 lines
3.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@page
@model DiwanRazor.Pages.RecitationsOrderModel
@using DNTPersianUtils.Core
@{
Layout = null;
}
<!DOCTYPE html>
<html lang="ur-PK" dir="rtl">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noindex, nofollow" />
<title>اطلاعات رتبه‌بندی خوانش‌های شعر</title>
<link href="~/css/p8.css" asp-append-version="true" rel="stylesheet" type="text/css" />
<partial name="_DiwanHead" />
</head>
<body>
<div id="fa">
@if (!string.IsNullOrEmpty(Model.LastError))
{
<div class="width-100per">
<div class="width-100per text-align-center">
<p class="alert-text">
@Model.LastError
</p>
</div>
</div>
}
else
{
<div class="poem">
<h2>اطلاعات رتبه‌بندی خوانش‌های شعر</h2>
<table>
<tr>
<th>
خوانش
</th>
<th>
امتیاز سابقه
</th>
<th>
آرای کاربران *
</th>
<th>
امتیاز منفی اشکالات × ۵
</th>
<th>
امتیاز نهایی
</th>
<th>
ترتیب
</th>
</tr>
@foreach (var score in Model.Scores)
{
<tr id="@($"a{score.RecitationId}")">
<td>
@($"{score.Recitation.AudioTitle} به خوانش {score.Recitation.AudioArtist}")
</td>
<td>
@((score.EarlynessAdvantage + score.InitialScore).ToPersianNumbers())
</td>
<td>
@score.UpVotes.ToPersianNumbers()
</td>
<td>
-۵ × @score.Mistakes.ToPersianNumbers()
</td>
<td>
@score.TotalScores.ToPersianNumbers()
</td>
<td>
@score.ComputedOrder.ToPersianNumbers()
</td>
</tr>
}
</table>
<p>
* رأی ثبت شده توسط کاربر مالک خوانش در محاسبه لحاظ نمی‌شود.
</p>
<p>
* خوانش‌هایی که یک کاربر به آنها رأی داده (آنها را نشان کرده) در بازدید مجدد از شعر برای خود او فارغ از رتبه‌بندی دیوان بالاتر از بقیهٔ خوانش‌ها نمایش داده می‌شود.
</p>
</div>
}
</div>
</body>
</html>