mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
fixing indent, fix checkout page opacity
This commit is contained in:
parent
e7a931e9ba
commit
27a2e614a5
3 changed files with 73 additions and 73 deletions
|
@ -18,7 +18,7 @@ namespace BTCPayServer
|
||||||
{
|
{
|
||||||
public static string WithTrailingSlash(this string str)
|
public static string WithTrailingSlash(this string str)
|
||||||
{
|
{
|
||||||
if (str.EndsWith("/"))
|
if(str.EndsWith("/"))
|
||||||
return str;
|
return str;
|
||||||
return str + "/";
|
return str + "/";
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ namespace BTCPayServer
|
||||||
|
|
||||||
public static BitIdentity GetBitIdentity(this Controller controller, bool throws = true)
|
public static BitIdentity GetBitIdentity(this Controller controller, bool throws = true)
|
||||||
{
|
{
|
||||||
if (!(controller.User.Identity is BitIdentity))
|
if(!(controller.User.Identity is BitIdentity))
|
||||||
return throws ? throw new UnauthorizedAccessException("no-bitid") : (BitIdentity)null;
|
return throws ? throw new UnauthorizedAccessException("no-bitid") : (BitIdentity)null;
|
||||||
return (BitIdentity)controller.User.Identity;
|
return (BitIdentity)controller.User.Identity;
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,7 +161,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div adjust-height="" class="payment-box">
|
<div adjust-height="" class="payment-box">
|
||||||
<div class="bp-view payment scan" id="scan" style="opacity: 1;">
|
<div class="bp-view payment scan" id="scan">
|
||||||
<div class="payment__scan">
|
<div class="payment__scan">
|
||||||
<qrcode :val="srvModel.btcAddress" :size="256" bg-color="#f5f5f7" fg-color="#000" />
|
<qrcode :val="srvModel.btcAddress" :size="256" bg-color="#f5f5f7" fg-color="#000" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,94 +8,94 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
|
|
||||||
<title>BTCPay Server</title>
|
<title>BTCPay Server</title>
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
<!-- Bootstrap core CSS -->
|
||||||
<link href="~/vendor/bootstrap/css/bootstrap.css" rel="stylesheet">
|
<link href="~/vendor/bootstrap/css/bootstrap.css" rel="stylesheet">
|
||||||
|
|
||||||
<!-- Custom fonts for this template -->
|
<!-- Custom fonts for this template -->
|
||||||
@*<link href="~/vendor/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
|
@*<link href="~/vendor/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
|
||||||
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
|
||||||
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>*@
|
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>*@
|
||||||
|
|
||||||
<!-- Plugin CSS -->
|
<!-- Plugin CSS -->
|
||||||
<link href="~/vendor/magnific-popup/magnific-popup.css" rel="stylesheet">
|
<link href="~/vendor/magnific-popup/magnific-popup.css" rel="stylesheet">
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
<!-- Custom styles for this template -->
|
||||||
<link href="~/css/creative.css" rel="stylesheet" />
|
<link href="~/css/creative.css" rel="stylesheet" />
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
<!-- Custom styles for this template -->
|
||||||
<link href="~/css/site.css" rel="stylesheet" />
|
<link href="~/css/site.css" rel="stylesheet" />
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="page-top">
|
<body id="page-top">
|
||||||
|
|
||||||
@{
|
@{
|
||||||
if (ViewBag.AlwaysShrinkNavBar == null)
|
if(ViewBag.AlwaysShrinkNavBar == null)
|
||||||
{
|
{
|
||||||
ViewBag.AlwaysShrinkNavBar = true;
|
ViewBag.AlwaysShrinkNavBar = true;
|
||||||
}
|
}
|
||||||
var additionalStyle = ViewBag.AlwaysShrinkNavBar ? "navbar-shrink always-shrinked" : "";
|
var additionalStyle = ViewBag.AlwaysShrinkNavBar ? "navbar-shrink always-shrinked" : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
<nav class='navbar navbar-expand-lg navbar-light fixed-top @additionalStyle' id="mainNav">
|
<nav class='navbar navbar-expand-lg navbar-light fixed-top @additionalStyle' id="mainNav">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="navbar-brand js-scroll-trigger" href="~/"><img src="~/img/logo.png" height="45"></a>
|
<a class="navbar-brand js-scroll-trigger" href="~/"><img src="~/img/logo.png" height="45"></a>
|
||||||
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||||
<ul class="navbar-nav ml-auto">
|
<ul class="navbar-nav ml-auto">
|
||||||
@if (SignInManager.IsSignedIn(User))
|
@if(SignInManager.IsSignedIn(User))
|
||||||
{
|
{
|
||||||
@if (User.IsInRole(Roles.ServerAdmin))
|
@if(User.IsInRole(Roles.ServerAdmin))
|
||||||
{
|
{
|
||||||
<li class="nav-item"><a asp-area="" asp-controller="Server" asp-action="ListUsers" class="nav-link js-scroll-trigger">Server settings</a></li>
|
<li class="nav-item"><a asp-area="" asp-controller="Server" asp-action="ListUsers" class="nav-link js-scroll-trigger">Server settings</a></li>
|
||||||
}
|
}
|
||||||
<li class="nav-item"><a asp-area="" asp-controller="Stores" asp-action="ListStores" class="nav-link js-scroll-trigger">Stores</a></li>
|
<li class="nav-item"><a asp-area="" asp-controller="Stores" asp-action="ListStores" class="nav-link js-scroll-trigger">Stores</a></li>
|
||||||
<li class="nav-item"><a asp-area="" asp-controller="Invoice" asp-action="ListInvoices" class="nav-link js-scroll-trigger">Invoices</a></li>
|
<li class="nav-item"><a asp-area="" asp-controller="Invoice" asp-action="ListInvoices" class="nav-link js-scroll-trigger">Invoices</a></li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a asp-area="" asp-controller="Manage" asp-action="Index" title="Manage" class="nav-link js-scroll-trigger">My settings</a>
|
<a asp-area="" asp-controller="Manage" asp-action="Index" title="Manage" class="nav-link js-scroll-trigger">My settings</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a asp-area="" asp-controller="Account" asp- asp-action="Logout" title="Manage" class="nav-link js-scroll-trigger">Log out</a>
|
<a asp-area="" asp-controller="Account" asp- asp-action="Logout" title="Manage" class="nav-link js-scroll-trigger">Log out</a>
|
||||||
</li>}
|
</li>}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<li class="nav-item"><a asp-area="" asp-controller="Account" asp-action="Register" class="nav-link js-scroll-trigger">Register</a></li>
|
<li class="nav-item"><a asp-area="" asp-controller="Account" asp-action="Register" class="nav-link js-scroll-trigger">Register</a></li>
|
||||||
<li class="nav-item"><a asp-area="" asp-controller="Account" asp-action="Login" class="nav-link js-scroll-trigger">Log in</a></li>}
|
<li class="nav-item"><a asp-area="" asp-controller="Account" asp-action="Login" class="nav-link js-scroll-trigger">Log in</a></li>}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
@RenderBody()
|
@RenderBody()
|
||||||
<footer class="bg-dark">
|
<footer class="bg-dark">
|
||||||
<div class="container text-right"><span>@env.ToString()</span></div>
|
<div class="container text-right"><span>@env.ToString()</span></div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript -->
|
<!-- Bootstrap core JavaScript -->
|
||||||
<script src="~/vendor/jquery/jquery.min.js"></script>
|
<script src="~/vendor/jquery/jquery.min.js"></script>
|
||||||
<script src="~/vendor/popper/popper.min.js"></script>
|
<script src="~/vendor/popper/popper.min.js"></script>
|
||||||
<script src="~/vendor/bootstrap/js/bootstrap.min.js"></script>
|
<script src="~/vendor/bootstrap/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
<!-- Plugin JavaScript -->
|
<!-- Plugin JavaScript -->
|
||||||
<script src="~/vendor/jquery-easing/jquery.easing.min.js"></script>
|
<script src="~/vendor/jquery-easing/jquery.easing.min.js"></script>
|
||||||
<script src="~/vendor/scrollreveal/scrollreveal.min.js"></script>
|
<script src="~/vendor/scrollreveal/scrollreveal.min.js"></script>
|
||||||
<script src="~/vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
|
<script src="~/vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
|
||||||
|
|
||||||
<!-- Custom scripts for this template -->
|
<!-- Custom scripts for this template -->
|
||||||
<script src="~/js/creative.js"></script>
|
<script src="~/js/creative.js"></script>
|
||||||
|
|
||||||
@RenderSection("Scripts", required: false)
|
@RenderSection("Scripts", required: false)
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Reference in a new issue