mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
21 lines
793 B
Plaintext
21 lines
793 B
Plaintext
@using BTCPayServer.Services.Altcoins.Monero.Services
|
|
@inject MoneroRPCProvider MoneroRpcProvider
|
|
@inject SignInManager<ApplicationUser> SignInManager;
|
|
|
|
@if (SignInManager.IsSignedIn(User) && User.IsInRole(Roles.ServerAdmin) && MoneroRpcProvider.Summaries.Any())
|
|
{
|
|
@foreach (var summary in MoneroRpcProvider.Summaries)
|
|
{
|
|
@if (summary.Value != null)
|
|
{
|
|
<h4>@summary.Key</h4>
|
|
<ul >
|
|
<li >Node available: @summary.Value.DaemonAvailable</li>
|
|
<li >Wallet available: @summary.Value.WalletAvailable</li>
|
|
<li >Last updated: @summary.Value.UpdatedAt</li>
|
|
<li >Synced: @summary.Value.Synced (@summary.Value.CurrentHeight / @summary.Value.TargetHeight)</li>
|
|
</ul>
|
|
}
|
|
}
|
|
}
|