mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-24 06:47:50 +01:00
* Unit test to check for (possibly) external links * Add rel="noreferrer noopener" to all external links so unit test passes * Update BTCPayServer.Tests/UnitTest1.cs Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Update BTCPayServer.Tests/UnitTest1.cs Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Fixed bad merge from master * PascalCasing Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
67 lines
2.5 KiB
Text
67 lines
2.5 KiB
Text
@model BTCPayServer.Models.WalletViewModels.ListWalletsViewModel
|
|
@{
|
|
ViewData.SetActivePageAndTitle(WalletsNavPages.Index, "Wallets");
|
|
}
|
|
|
|
<section>
|
|
<div class="container">
|
|
<partial name="_StatusMessage" />
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12 section-heading">
|
|
<h2>
|
|
@ViewData["Title"]
|
|
<small>
|
|
<a href="https://docs.btcpayserver.org/Wallet/" target="_blank" rel="noreferrer noopener">
|
|
<span class="fa fa-question-circle-o text-secondary" title="More information..."></span>
|
|
</a>
|
|
</small>
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
@if (Model.Wallets.Any())
|
|
{
|
|
<table class="table table-sm table-responsive-md">
|
|
<thead>
|
|
<tr>
|
|
<th>Store Name</th>
|
|
<th>Crypto Code</th>
|
|
<th>Balance</th>
|
|
<th class="text-end">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var wallet in Model.Wallets)
|
|
{
|
|
<tr>
|
|
@if (wallet.IsOwner)
|
|
{
|
|
<td><a asp-action="UpdateStore" asp-controller="Stores" asp-route-storeId="@wallet.StoreId">@wallet.StoreName</a></td>
|
|
}
|
|
else
|
|
{
|
|
<td>@wallet.StoreName</td>
|
|
}
|
|
<td>@wallet.CryptoCode</td>
|
|
<td>@wallet.Balance</td>
|
|
<td class="text-end">
|
|
<a asp-action="WalletTransactions" asp-route-walletId="@wallet.Id">Manage</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
else
|
|
{
|
|
<p class="text-secondary mt-3">
|
|
There are no wallets yet. You can add wallets in the store setup.
|
|
</p>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|