divan/DiwanRazor/Pages/Shared/_Pagination.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

30 lines
962 B
Plaintext

@*
Renders the pagination links used throughout the User area.
Every list page already builds a List<NameIdUrlImage> called
PaginationLinks (Name = label, Url = link, or Url == "" for the
current/disabled page) — pass that model straight in:
<partial name="_Pagination" model="Model.PaginationLinks" />
Replaces the hand-written @foreach loop that was copy-pasted at the
top and bottom of every list page.
*@
@model System.Collections.Generic.List<GSpotifyProxy.Models.NameIdUrlImage>
@if (Model != null && Model.Count > 0)
{
<nav class="up-pagination" aria-label="صفحه‌بندی">
@foreach (var link in Model)
{
if (!string.IsNullOrEmpty(link.Url))
{
<a href="@link.Url">@link.Name</a>
}
else
{
<span class="up-pagination__current" aria-current="page">@link.Name</span>
}
}
</nav>
}