mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
13 lines
767 B
Plaintext
13 lines
767 B
Plaintext
@using BTCPayServer.Services.Altcoins.Monero.Configuration
|
|
@using BTCPayServer.Services.Altcoins.Monero.UI
|
|
@inject SignInManager<ApplicationUser> SignInManager;
|
|
@inject MoneroLikeConfiguration MoneroLikeConfiguration;
|
|
@{
|
|
var controller = ViewContext.RouteData.Values["Controller"].ToString();
|
|
var isMonero = controller.Equals(nameof(MoneroLikeStoreController), StringComparison.InvariantCultureIgnoreCase);
|
|
}
|
|
@if (SignInManager.IsSignedIn(User) && User.IsInRole(Roles.ServerAdmin) && MoneroLikeConfiguration.MoneroLikeConfigurationItems.Any())
|
|
{
|
|
<a class="nav-link @(isMonero ? "active" : string.Empty)" asp-route-storeId="@this.Context.GetRouteValue("storeId")" asp-action="GetStoreMoneroLikePaymentMethods" asp-controller="MoneroLikeStore">Monero</a>
|
|
}
|