mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
@{
|
|
Layout = "/Views/Shared/_Layout.cshtml";
|
|
ViewBag.ShowMenu = ViewBag.ShowMenu ?? true;
|
|
if (!ViewData.ContainsKey("NavPartialName"))
|
|
{
|
|
ViewData["NavPartialName"] = "_Nav";
|
|
}
|
|
var title = $"{(ViewData.ContainsKey("MainTitle")? $"{ViewData["MainTitle"]}:" : String.Empty)} {ViewData["Title"]}";
|
|
}
|
|
|
|
<section>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
@if (ViewBag.ShowMenu)
|
|
{
|
|
<h4 class="section-heading">@title</h4>
|
|
<hr class="primary ml-0">
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
@if (ViewBag.ShowMenu)
|
|
{
|
|
@await Html.PartialAsync(ViewData["NavPartialName"].ToString())
|
|
}
|
|
</div>
|
|
<div class="col-md-9">
|
|
@RenderBody()
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@section HeadScripts {
|
|
@RenderSection("HeadScripts", required: false)
|
|
}
|
|
|
|
@section Scripts {
|
|
@RenderSection("Scripts", required: false)
|
|
}
|