mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-30 12:14:23 +01:00
* add in ui * add in logging viewer * Revert "add in ui" This reverts commit 9614721fa8a439f7097adca69772b5d41f6585d6. * finish basic feature * clean up * improve and fix build * add in debug log level command option * use paging for log file list, use extension to select log files, show message for setting up logging * make paging a little better * add very basic UT for logs * Update ServerController.cs
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
@model BTCPayServer.Models.ServerViewModels.LogsViewModel
|
|
@{
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Logs);
|
|
}
|
|
|
|
<h4>@ViewData["Title"]</h4>
|
|
<partial name="_StatusMessage" for="StatusMessage"/>
|
|
|
|
<div class="row">
|
|
<ul>
|
|
@foreach (var file in Model.LogFiles)
|
|
{
|
|
<li>
|
|
<a asp-action="LogsView" asp-route-file="@file.Name">@file.Name</a>
|
|
</li>
|
|
}
|
|
<li>
|
|
@if (Model.LogFileOffset > 0)
|
|
{
|
|
<a asp-action="LogsView" asp-route-offset="@(Model.LogFileOffset - 5)"><<</a>
|
|
}
|
|
Showing @Model.LogFileOffset - (@Model.LogFileOffset+@Model.LogFiles.Count) of @Model.LogFileCount
|
|
@if ((Model.LogFileOffset+ Model.LogFiles.Count) < Model.LogFileCount)
|
|
{
|
|
<a asp-action="LogsView" asp-route-offset="@(Model.LogFileOffset + Model.LogFiles.Count)">>></a>
|
|
}
|
|
</li>
|
|
</ul>
|
|
@if (!string.IsNullOrEmpty(Model.Log))
|
|
{
|
|
<pre>
|
|
@Model.Log
|
|
</pre>
|
|
}
|
|
|
|
</div>
|
|
|
|
@section Scripts {
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
}
|