btcpayserver/BTCPayServer/Views/UIServer/Logs.cshtml
d11n a962e60de9
More Translations (#6318)
* Store selector

* Footer

* Notifications

* Checkout Appearance

* Users list

* Forms

* Emails

* Pay Button

* Edit Dictionary

* Remove newlines, fix typos

* Forms

* Pull payments and payouts

* Various pages

* Use local docs link

* Fix

* Even more translations

* Fixes #6325

* Account pages

* Notifications

* Placeholders

* Various pages and components

* Add more
2024-10-25 22:48:53 +09:00

48 lines
1.4 KiB
Text

@model BTCPayServer.Models.ServerViewModels.LogsViewModel
@{
ViewData.SetActivePage(ServerNavPages.Logs, StringLocalizer["Logs"]);
}
<div class="sticky-header">
<h2 class="my-1" text-translate="true">@ViewData["Title"]</h2>
</div>
<partial name="_StatusMessage" />
<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)">&laquo;</a>
</li>
<li class="page-item disabled">
<span class="page-link">@StringLocalizer["Showing {0} of {1}", Model.LogFileOffset - (Model.LogFileOffset + Model.LogFiles.Count), 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)">&raquo;</a>
</li>
</ul>
</nav>
@if (!string.IsNullOrEmpty(Model.Log))
{
<br>
<br>
<br>
<pre>
@Model.Log
</pre>
}
@section PageFootContent {
<partial name="_ValidationScriptsPartial" />
}