From 27a2e614a568484d4d46f496b1e9e9e4edbc3daf Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 27 Oct 2017 17:37:15 +0900 Subject: [PATCH] fixing indent, fix checkout page opacity --- BTCPayServer/Extensions.cs | 4 +- BTCPayServer/Views/Invoice/Checkout.cshtml | 2 +- BTCPayServer/Views/Shared/_Layout.cshtml | 140 ++++++++++----------- 3 files changed, 73 insertions(+), 73 deletions(-) diff --git a/BTCPayServer/Extensions.cs b/BTCPayServer/Extensions.cs index f5cda3e34..5d07792bd 100644 --- a/BTCPayServer/Extensions.cs +++ b/BTCPayServer/Extensions.cs @@ -18,7 +18,7 @@ namespace BTCPayServer { public static string WithTrailingSlash(this string str) { - if (str.EndsWith("/")) + if(str.EndsWith("/")) return str; return str + "/"; } @@ -44,7 +44,7 @@ namespace BTCPayServer 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 (BitIdentity)controller.User.Identity; } diff --git a/BTCPayServer/Views/Invoice/Checkout.cshtml b/BTCPayServer/Views/Invoice/Checkout.cshtml index 7a06f28c0..4f6ba2254 100644 --- a/BTCPayServer/Views/Invoice/Checkout.cshtml +++ b/BTCPayServer/Views/Invoice/Checkout.cshtml @@ -161,7 +161,7 @@
-
+
diff --git a/BTCPayServer/Views/Shared/_Layout.cshtml b/BTCPayServer/Views/Shared/_Layout.cshtml index 7002b7abc..fb836f3dc 100644 --- a/BTCPayServer/Views/Shared/_Layout.cshtml +++ b/BTCPayServer/Views/Shared/_Layout.cshtml @@ -8,94 +8,94 @@ - - - - + + + + - BTCPay Server + BTCPay Server - - + + - - @* - - *@ + + @* + + *@ - - + + - - + + - - + + - @{ - if (ViewBag.AlwaysShrinkNavBar == null) - { - ViewBag.AlwaysShrinkNavBar = true; - } - var additionalStyle = ViewBag.AlwaysShrinkNavBar ? "navbar-shrink always-shrinked" : ""; - } + @{ + if(ViewBag.AlwaysShrinkNavBar == null) + { + ViewBag.AlwaysShrinkNavBar = true; + } + var additionalStyle = ViewBag.AlwaysShrinkNavBar ? "navbar-shrink always-shrinked" : ""; + } - - - @RenderBody() -
-
@env.ToString()
-
+ @RenderBody() +
+
@env.ToString()
+
- - - - + + + + - - - - + + + + - - + + - @RenderSection("Scripts", required: false) + @RenderSection("Scripts", required: false)