mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-24 14:50:50 +01:00
* UI: Move section navigation to sidebar * Scroll active nav link into view * Move CTAs to top right * Server Settings: Make Policies first page * Responsive table fixes * Spacing fixes * Add breadcrumb samples * store settings fixes * payment request fixes * updates pull payment title * adds invoice detail fix * updates server settings breadcrumbs + copy fix * Don't open Server Settings on Plugins page * Add breadcrumbs to pull payment views * adds breadcrumbs to account * server and store breadcrumb fixes * fixes access tokens * Fix payment processor breadcrumbs * fixes webhook 404 * Final touches * Fix test * Add breadcrumb for email rules page * Design system updates --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
44 lines
1.9 KiB
Text
44 lines
1.9 KiB
Text
@using BTCPayServer.Client
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@using BTCPayServer.Views.Apps
|
|
@using BTCPayServer.Plugins.PointOfSale
|
|
@using BTCPayServer.Services.Apps
|
|
@inject AppService AppService
|
|
@model BTCPayServer.Components.MainNav.MainNavViewModel
|
|
@{
|
|
var store = Context.GetStoreData();
|
|
}
|
|
|
|
@if (store != null)
|
|
{
|
|
var appType = AppService.GetAppType(PointOfSaleAppType.AppType)!;
|
|
var apps = Model.Apps.Where(app => app.AppType == appType.Type).ToList();
|
|
<li class="nav-item" permission="@Policies.CanModifyStoreSettings">
|
|
<a asp-area="" asp-controller="UIApps" asp-action="CreateApp" asp-route-storeId="@store.Id" asp-route-appType="@appType.Type" class="nav-link @ViewData.ActivePageClass(AppsNavPages.Create, appType.Type)" id="@($"StoreNav-Create{appType.Type}")">
|
|
<vc:icon symbol="nav-pointofsale" />
|
|
<span>@appType.Description</span>
|
|
</a>
|
|
</li>
|
|
@if (apps.Any())
|
|
{
|
|
<li class="nav-item" not-permission="@Policies.CanModifyStoreSettings" permission="@Policies.CanViewStoreSettings">
|
|
<span class="nav-link">
|
|
<vc:icon symbol="nav-pointofsale" />
|
|
<span>@appType.Description</span>
|
|
</span>
|
|
</li>
|
|
}
|
|
@foreach (var app in apps)
|
|
{
|
|
<li class="nav-item nav-item-sub" permission="@Policies.CanViewStoreSettings">
|
|
<a asp-area="" asp-controller="UIPointOfSale" asp-action="UpdatePointOfSale" asp-route-appId="@app.Id" class="nav-link @ViewData.ActivePageClass(AppsNavPages.Update, app.Id)" id="@($"StoreNav-App-{app.Id}")">
|
|
<span>@app.AppName</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item nav-item-sub" not-permission="@Policies.CanViewStoreSettings">
|
|
<a asp-area="" asp-controller="UIPointOfSale" asp-action="ViewPointOfSale" asp-route-appId="@app.Id" class="nav-link">
|
|
<span>@app.AppName</span>
|
|
</a>
|
|
</li>
|
|
}
|
|
}
|