mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
* Add dashboard and chart basics * More widgets * Make widgets responsive * Layout dashboard * Prepare ExplorerClient * Switch to Chartist * Dynamic data for store numbers and recent transactions tiles * Dynamic data for recent invoices tile * Improvements * Plug NBXPlorer DB * Properly filter by code * Reorder cheat mode button * AJAX update for graph data * Fix create invoice button * Retry connection on transient issues * App Top Items stats * Design updates * App Sales stats * Add points for weekly histogram, set last point to current balance Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
51 lines
1.6 KiB
Text
51 lines
1.6 KiB
Text
@using BTCPayServer.Abstractions.Extensions
|
|
@model BTCPayServer.Components.StoreRecentTransactions.StoreRecentTransactionsViewModel
|
|
|
|
<div class="widget store-recent-transactions">
|
|
<header>
|
|
<h3>Recent Transactions</h3>
|
|
@if (Model.Transactions.Any())
|
|
{
|
|
<a asp-controller="UIWallets" asp-action="WalletTransactions" asp-route-walletId="@Model.WalletId">View All</a>
|
|
}
|
|
</header>
|
|
@if (Model.Transactions.Any())
|
|
{
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th class="w-125px">Date</th>
|
|
<th>Transaction</th>
|
|
<th class="text-end">Amount</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var tx in Model.Transactions)
|
|
{
|
|
<tr>
|
|
<td>@tx.Timestamp.ToTimeAgo()</td>
|
|
<td>
|
|
<a href="@tx.Link" target="_blank" rel="noreferrer noopener" class="text-break">
|
|
@tx.Id
|
|
</a>
|
|
</td>
|
|
@if (tx.Positive)
|
|
{
|
|
<td class="text-end text-success">@tx.Balance</td>
|
|
}
|
|
else
|
|
{
|
|
<td class="text-end text-danger">@tx.Balance</td>
|
|
}
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
else
|
|
{
|
|
<p class="text-secondary mt-3 mb-0">
|
|
There are no recent transactions.
|
|
</p>
|
|
}
|
|
</div>
|