mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-28 16:58:00 +01:00
* Improve and unify page headers * Altcoin test fixes * Update BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Update BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Fix missing store name in pairing view * Fix CanUsePairing test * Bump header navigation font size * Use partial tag instead of Html.PartialAsync in views As suggested by @nicolasdorier. These are equivalent, see details [here](https://docs.microsoft.com/en-us/aspnet/core/mvc/views/partial?view=aspnetcore-3.1#partial-tag-helper). * Fix docs link As in #2432. * Update BTCPayServer/Views/Wallets/SignWithSeed.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Views/Wallets/WalletSendVault.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Views/Wallets/WalletTransactions.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com>
57 lines
1.9 KiB
Text
57 lines
1.9 KiB
Text
@{
|
|
Layout = "/Views/Shared/_Layout.cshtml";
|
|
ViewBag.ShowMenu = ViewBag.ShowMenu ?? true;
|
|
ViewBag.ShowMainTitle = ViewBag.ShowMainTitle ?? true;
|
|
ViewBag.ShowBreadcrumb = ViewBag.ShowBreadcrumb ?? false;
|
|
if (!ViewData.ContainsKey("NavPartialName"))
|
|
{
|
|
ViewData["NavPartialName"] = "_Nav";
|
|
}
|
|
}
|
|
|
|
<section>
|
|
<div class="container">
|
|
@if (ViewBag.ShowBreadcrumb)
|
|
{
|
|
<nav aria-label="breadcrumb" class="mt-n3 mb-4">
|
|
<ol class="breadcrumb px-0">
|
|
@if (!string.IsNullOrEmpty(ViewData["CategoryTitle"] as string))
|
|
{
|
|
<li class="breadcrumb-item" aria-current="page">@ViewData["CategoryTitle"]</li>
|
|
}
|
|
@if (!string.IsNullOrEmpty(ViewData["MainTitle"] as string))
|
|
{
|
|
<li class="breadcrumb-item" aria-current="page">@ViewData["MainTitle"]</li>
|
|
}
|
|
@if (!string.IsNullOrEmpty(ViewData["PageTitle"] as string))
|
|
{
|
|
<li class="breadcrumb-item" aria-current="page">@ViewData["PageTitle"]</li>
|
|
}
|
|
</ol>
|
|
</nav>
|
|
}
|
|
else if (!string.IsNullOrEmpty(ViewData["MainTitle"] as string))
|
|
{
|
|
<h2 class="mb-5">@ViewData["MainTitle"]</h2>
|
|
}
|
|
<div class="row">
|
|
@if (ViewBag.ShowMenu)
|
|
{
|
|
<div class="col-md-3 ml-n3 ml-md-0">
|
|
<partial name="@ViewData["NavPartialName"].ToString()" />
|
|
</div>
|
|
}
|
|
<div class="col-md-9">
|
|
<partial name="_StatusMessage" />
|
|
@RenderBody()
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
@section HeadScripts {
|
|
@await RenderSectionAsync("HeadScripts", false)
|
|
}
|
|
@section Scripts {
|
|
@await RenderSectionAsync("Scripts", false)
|
|
}
|