divan/GanjooRazor/Pages/RecitationsOrder.cshtml
2024-05-04 18:00:34 +03:30

96 lines
3.3 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 GanjooRazor.Pages.RecitationsOrderModel
@using DNTPersianUtils.Core
@{
Layout = null;
}
<!DOCTYPE html>
<html lang="fa-IR" 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?version=69" rel="stylesheet" type="text/css" />
</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>