mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-18 16:14:25 +01:00
18 lines
893 B
Plaintext
18 lines
893 B
Plaintext
@using BTCPayServer
|
|
@using BTCPayServer.Abstractions.Contracts
|
|
@using BTCPayServer.Plugins.Altcoins
|
|
@using BTCPayServer.Plugins.LiquidPlus.Controllers
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@using Microsoft.AspNetCore.Routing
|
|
@inject BTCPayNetworkProvider BTCPayNetworkProvider;
|
|
@inject IScopeProvider ScopeProvider
|
|
@{
|
|
var storeId = ScopeProvider.GetCurrentStoreId();
|
|
var isActive = !string.IsNullOrEmpty(storeId) && ViewContext.RouteData.Values.TryGetValue("Controller", out var controller) && controller is not null &&
|
|
nameof(StoreLiquidController).StartsWith(controller?.ToString(), StringComparison.InvariantCultureIgnoreCase);
|
|
}
|
|
@if (BTCPayNetworkProvider.GetAll().OfType<ElementsBTCPayNetwork>().Any())
|
|
{
|
|
<a class="nav-link @(isActive ? "active" : string.Empty)" asp-route-storeId="@storeId" asp-action="GenerateLiquidScript" asp-controller="StoreLiquid">Liquid</a>
|
|
}
|