2024-05-05 18:13:06 +01:00
|
|
|
@{
|
|
|
|
var urlRoot = ViewData["UrlRoot"]?.ToString() ?? string.Empty;
|
|
|
|
var page = (int)(ViewData["Page"] ?? 1);
|
|
|
|
var pageCount = (int)(ViewData["PageCount"] ?? 1);
|
|
|
|
|
|
|
|
var utility = new PageTabsUtility
|
|
|
|
{
|
|
|
|
CurrentPage = page,
|
|
|
|
PageCount = pageCount,
|
2024-07-15 19:38:56 +01:00
|
|
|
UrlRoot = urlRoot,
|
|
|
|
Tags = ViewData["Tags"] as string[]
|
2024-05-05 18:13:06 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
<nav>
|
|
|
|
<ul class="pagination justify-content-center">
|
2024-07-15 19:38:34 +01:00
|
|
|
@if (pageCount == 1)
|
|
|
|
{
|
|
|
|
@Html.Raw(utility.ShowTab(1)) @* always visible *@
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
@Html.Raw(utility.ShowBounds(PageTabsUtility.BoundsType.Lower))
|
|
|
|
@Html.Raw(utility.ShowTab(1)) @* always visible *@
|
|
|
|
@Html.Raw(utility.ShowTabWindow())
|
|
|
|
@Html.Raw(utility.ShowTab(pageCount)) @* always visible *@
|
|
|
|
@Html.Raw(utility.ShowBounds(PageTabsUtility.BoundsType.Upper))
|
|
|
|
}
|
2024-05-05 18:13:06 +01:00
|
|
|
</ul>
|
|
|
|
</nav>
|