mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
@model BTCPayServer.Models.ServerViewModels.LogsViewModel
|
|
@{
|
|
ViewData.SetActivePage(ServerNavPages.Logs, "Logs");
|
|
}
|
|
|
|
<h2 class="mb-4">@ViewData["Title"]</h2>
|
|
|
|
<ul class="list-unstyled">
|
|
@foreach (var file in Model.LogFiles)
|
|
{
|
|
<li>
|
|
<a asp-action="LogsView" asp-route-file="@file.Name">@file.Name</a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
|
|
<nav aria-label="..." class="w-100">
|
|
<ul class="pagination float-start">
|
|
<li class="page-item @(Model.LogFileOffset == 0 ? "disabled" : null)">
|
|
<a class="page-link" asp-action="LogsView" asp-route-offset="@(Model.LogFileOffset - 5)">«</a>
|
|
</li>
|
|
<li class="page-item disabled">
|
|
<span class="page-link">Showing @Model.LogFileOffset - (@(Model.LogFileOffset+Model.LogFiles.Count)) of @Model.LogFileCount</span>
|
|
</li>
|
|
<li class="page-item @((Model.LogFileOffset + Model.LogFiles.Count) < Model.LogFileCount ? null : "disabled")">
|
|
<a class="page-link" asp-action="LogsView" asp-route-offset="@(Model.LogFileOffset + Model.LogFiles.Count)">»</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
@if (!string.IsNullOrEmpty(Model.Log))
|
|
{
|
|
<br>
|
|
<br>
|
|
<br>
|
|
|
|
<pre>
|
|
@Model.Log
|
|
</pre>
|
|
}
|
|
|
|
|
|
@section PageFootContent {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|