mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
2e6246e385
* Move TagHelpers to Abstractions Makes them available for use in plugins. Also cleans up the tag helper references in the view code: As we have it in the root view imports, the individual directives in the views are superfluous. * Move CurrenciesSuggestionsTagHelper back To get rid of the Rating dependency in Abstractions.
28 lines
1.5 KiB
Plaintext
28 lines
1.5 KiB
Plaintext
@using BTCPayServer.Views.Stores
|
|
@using BTCPayServer.Client
|
|
@using BTCPayServer.Views.Wallets
|
|
@using BTCPayServer.Abstractions.Extensions
|
|
|
|
@model BTCPayServer.Components.WalletNav.WalletNavViewModel
|
|
|
|
<div class="d-sm-flex align-items-center justify-content-between">
|
|
<a asp-controller="UIWallets" asp-action="WalletTransactions" asp-route-walletId="@Model.WalletId" class="unobtrusive-link">
|
|
<h2 class="mb-1">@Model.Label</h2>
|
|
<div class="text-muted fw-semibold">
|
|
@Model.Balance @Model.Network.CryptoCode
|
|
</div>
|
|
</a>
|
|
<div class="d-flex gap-3 mt-3 mt-sm-0" permission="@Policies.CanModifyStoreSettings">
|
|
@if (!Model.Network.ReadonlyWallet)
|
|
{
|
|
<a class="btn btn-primary" asp-controller="UIWallets" asp-action="WalletSend" asp-route-walletId="@Model.WalletId" id="WalletNav-Send">Send</a>
|
|
}
|
|
<a class="btn btn-primary" asp-controller="UIWallets" asp-action="WalletReceive" asp-route-walletId="@Model.WalletId" id="WalletNav-Receive">Receive</a>
|
|
<a class="btn btn-secondary @ViewData.IsActivePage(WalletsNavPages.Settings) @ViewData.IsActivePage(StoreNavPages.OnchainSettings)" asp-controller="UIStores" asp-action="WalletSettings" asp-route-cryptoCode="@Model.WalletId.CryptoCode" asp-route-storeId="@Model.WalletId.StoreId" title="Settings" id="WalletNav-Settings">
|
|
<vc:icon symbol="settings"/>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<vc:ui-extension-point location="wallet-nav" model="@Model"/>
|