This commit is contained in:
dingo
2025-12-25 15:06:25 -05:00
parent 30b7d89a70
commit 46adfd5e81
5 changed files with 53 additions and 5 deletions
+3 -3
View File
@@ -75,7 +75,7 @@
<td class="table-cell">
@if (!string.IsNullOrEmpty(item.SpritePath))
{
<img src="@Model.CdnBaseUrl/@item.SpritePath"
<img src="@Html.Raw(Model.CdnBaseUrl)/@item.SpritePath"
alt="@item.Name"
class="w-10 h-10 object-contain bg-gray-900 rounded border border-gray-700"
onerror="this.style.display='none'" />
@@ -158,12 +158,12 @@
<div class="flex items-center gap-2">
@if (Model.CurrentPage > 1)
{
<a href="/admin/items?page=@(Model.CurrentPage - 1)&search=@Model.Search&type=@Model.TypeFilter&rarity=@Model.RarityFilter" class="btn btn-secondary">← Prev</a>
<a href="@Model.GetPageUrl(Model.CurrentPage - 1)" class="btn btn-secondary">← Prev</a>
}
<span class="text-gray-400 px-2">@Model.CurrentPage / @Model.TotalPages</span>
@if (Model.CurrentPage < Model.TotalPages)
{
<a href="/admin/items?page=@(Model.CurrentPage + 1)&search=@Model.Search&type=@Model.TypeFilter&rarity=@Model.RarityFilter" class="btn btn-secondary">Next →</a>
<a href="@Model.GetPageUrl(Model.CurrentPage + 1)" class="btn btn-secondary">Next →</a>
}
</div>
</div>