mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-16 23:24:25 +01:00
16 lines
603 B
Plaintext
16 lines
603 B
Plaintext
@using BTCPayServer.Client
|
|
@using BTCPayServer.Plugins.DynamicReports
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
|
|
@{
|
|
var isActive = ViewContext.RouteData.Values.TryGetValue("Controller", out var controller) && controller is not null &&
|
|
nameof(DynamicReportsController).StartsWith(controller?.ToString(), StringComparison.InvariantCultureIgnoreCase);
|
|
}
|
|
|
|
|
|
<li class="nav-item nav-item-sub" permission="@Policies.CanModifyServerSettings">
|
|
|
|
<a class="nav-link @(isActive ? "active" : string.Empty)" asp-action="Update" asp-controller="DynamicReports">Dynamic Reports</a>
|
|
</li>
|
|
|