mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
* Store Selector: Create first store button * Add setup guide to homepage * Policy update for stores list * Fix test * Initial create store button as primary * Add notifications list to homepage * Remove back to list from store create view * Adapt content padding on desktop * Add store home view with setup guide * Fix active page nav highlighting * Test fix * Remove What's Next section * Rename Store Home to Dashboard * Fix Lightning setup link * Add tests for store setup guide * Update BTCPayServer/Views/Home/Home.cshtml Co-authored-by: Pavlenex <pavle@pavle.org> * Update BTCPayServer/Views/Stores/Dashboard.cshtml Co-authored-by: Pavlenex <pavle@pavle.org> * Remove setup guide on global homepage * Remove Shopify setup link from nav * Fix content container max-width on desktop Co-authored-by: Pavlenex <pavle@pavle.org>
32 lines
1.7 KiB
Text
32 lines
1.7 KiB
Text
@using BTCPayServer.Views.Notifications
|
|
@using BTCPayServer.Abstractions.Extensions
|
|
@model BTCPayServer.Components.Notifications.NotificationsViewModel
|
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
|
|
<div id="Notifications">
|
|
@if (Model.UnseenCount > 0)
|
|
{
|
|
<button id="NotificationsHandle" class="mainMenuButton @ViewData.IsActiveCategory(typeof(NotificationsNavPages))" title="Notifications" type="button" data-bs-toggle="dropdown">
|
|
<vc:icon symbol="notifications" />
|
|
<span class="badge rounded-pill bg-danger p-1 ms-1" id="NotificationsBadge">@Model.UnseenCount</span>
|
|
</button>
|
|
<div class="dropdown-menu text-center" id="NotificationsDropdown" aria-labelledby="NotificationsHandle">
|
|
<div class="d-flex align-items-center justify-content-between py-3 px-4 border-bottom border-light">
|
|
<h5 class="m-0">Notifications</h5>
|
|
<form id="notificationsForm" asp-controller="Notifications" asp-action="MarkAllAsSeen" asp-route-returnUrl="@Context.Request.GetCurrentPathWithQueryString()" method="post">
|
|
<button class="btn btn-link p-0" type="submit">Mark all as seen</button>
|
|
</form>
|
|
</div>
|
|
<partial name="Components/Notifications/List" model="Model"/>
|
|
<div class="p-3">
|
|
<a asp-controller="Notifications" asp-action="Index">View all</a>
|
|
</div>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<a asp-controller="Notifications" asp-action="Index" id="NotificationsHandle" class="mainMenuButton @ViewData.IsActiveCategory(typeof(NotificationsNavPages))" title="Notifications">
|
|
<vc:icon symbol="notifications" />
|
|
</a>
|
|
}
|
|
</div>
|