2022-04-12 09:55:10 +02:00
|
|
|
@model BTCPayServer.Components.AppTopItems.AppTopItemsViewModel
|
|
|
|
|
|
|
|
@{
|
|
|
|
var action = $"Update{Model.App.AppType}";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="widget app-top-items">
|
|
|
|
<header class="mb-3">
|
2022-04-13 21:08:43 -07:00
|
|
|
<h3>Top Perks</h3>
|
2022-04-12 09:55:10 +02:00
|
|
|
<a asp-controller="UIApps" asp-action="@action" asp-route-appId="@Model.App.Id">View All</a>
|
|
|
|
</header>
|
|
|
|
@if (Model.Entries.Any())
|
|
|
|
{
|
|
|
|
<div class="app-items">
|
|
|
|
@foreach (var entry in Model.Entries)
|
|
|
|
{
|
|
|
|
<div class="app-item">
|
|
|
|
<span class="app-item-name">@entry.Title</span>
|
|
|
|
<span class="app-item-value">
|
|
|
|
@entry.SalesCount sale@(entry.SalesCount == 1 ? "" : "s"),
|
|
|
|
@entry.TotalFormatted total
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<p class="text-secondary mt-3">
|
2022-04-13 21:08:43 -07:00
|
|
|
No contributions have been made yet.
|
2022-04-12 09:55:10 +02:00
|
|
|
</p>
|
|
|
|
}
|
|
|
|
</div>
|