mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
Refactor the Header in its own partial view
This commit is contained in:
parent
1a407a2da3
commit
5650b8560d
4 changed files with 22 additions and 56 deletions
|
@ -1,6 +1,4 @@
|
||||||
@model LoginViewModel
|
@model LoginViewModel
|
||||||
@inject BTCPayServer.HostedServices.CssThemeManager themeManager
|
|
||||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
||||||
@{
|
@{
|
||||||
Layout = null;
|
Layout = null;
|
||||||
}
|
}
|
||||||
|
@ -8,21 +6,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<partial name="Header" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
@if (themeManager.DiscourageSearchEngines)
|
|
||||||
{
|
|
||||||
<META NAME="robots" CONTENT="noindex">
|
|
||||||
}
|
|
||||||
<title>@ViewData["Title"]</title>
|
|
||||||
@* CSS *@
|
|
||||||
<link href="@this.Context.Request.GetRelativePathOrAbsolute(themeManager.BootstrapUri)" rel="stylesheet" />
|
|
||||||
<link href="@this.Context.Request.GetRelativePathOrAbsolute(themeManager.CreativeStartUri)" rel="stylesheet" />
|
|
||||||
<bundle name="wwwroot/bundles/main-bundle.min.css" />
|
|
||||||
@* JS *@
|
|
||||||
<bundle name="wwwroot/bundles/main-bundle.min.js" />
|
|
||||||
<style>
|
<style>
|
||||||
.lead-title {
|
.lead-title {
|
||||||
font-family: Montserrat;
|
font-family: Montserrat;
|
||||||
|
|
|
@ -1,30 +1,14 @@
|
||||||
@model ConfirmModel
|
@model ConfirmModel
|
||||||
|
|
||||||
@inject BTCPayServer.HostedServices.NBXplorerDashboard dashboard
|
|
||||||
@inject BTCPayServer.HostedServices.CssThemeManager themeManager
|
|
||||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
||||||
@{
|
@{
|
||||||
|
ViewData["Title"] = Model.Title;
|
||||||
Layout = null;
|
Layout = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<partial name="Header" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
@if (themeManager.DiscourageSearchEngines)
|
|
||||||
{
|
|
||||||
<META NAME="robots" CONTENT="noindex">
|
|
||||||
}
|
|
||||||
<title>BTCPay Server</title>
|
|
||||||
@* CSS *@
|
|
||||||
<link href="@this.Context.Request.GetRelativePathOrAbsolute(themeManager.BootstrapUri)" rel="stylesheet" />
|
|
||||||
<link href="@this.Context.Request.GetRelativePathOrAbsolute(themeManager.CreativeStartUri)" rel="stylesheet" />
|
|
||||||
<bundle name="wwwroot/bundles/main-bundle.min.css" />
|
|
||||||
@* JS *@
|
|
||||||
<bundle name="wwwroot/bundles/main-bundle.min.js" />
|
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-light">
|
<body class="bg-light">
|
||||||
<div class="modal-dialog modal-dialog-centered">
|
<div class="modal-dialog modal-dialog-centered">
|
||||||
|
|
18
BTCPayServer/Views/Shared/Header.cshtml
Normal file
18
BTCPayServer/Views/Shared/Header.cshtml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
@inject BTCPayServer.HostedServices.CssThemeManager themeManager
|
||||||
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||||
|
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="author" content="">
|
||||||
|
@if (themeManager.DiscourageSearchEngines)
|
||||||
|
{
|
||||||
|
<META NAME="robots" CONTENT="noindex">
|
||||||
|
}
|
||||||
|
<title>@ViewData["Title"]</title>
|
||||||
|
@* CSS *@
|
||||||
|
<link href="@this.Context.Request.GetRelativePathOrAbsolute(themeManager.BootstrapUri)" rel="stylesheet" />
|
||||||
|
<link href="@this.Context.Request.GetRelativePathOrAbsolute(themeManager.CreativeStartUri)" rel="stylesheet" />
|
||||||
|
<bundle name="wwwroot/bundles/main-bundle.min.css" />
|
||||||
|
@* JS *@
|
||||||
|
<bundle name="wwwroot/bundles/main-bundle.min.js" />
|
|
@ -5,31 +5,11 @@
|
||||||
@inject BTCPayServer.HostedServices.NBXplorerDashboard dashboard
|
@inject BTCPayServer.HostedServices.NBXplorerDashboard dashboard
|
||||||
@inject BTCPayServer.HostedServices.CssThemeManager themeManager
|
@inject BTCPayServer.HostedServices.CssThemeManager themeManager
|
||||||
|
|
||||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<partial name="Header" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
@if (themeManager.DiscourageSearchEngines)
|
|
||||||
{
|
|
||||||
<META NAME="robots" CONTENT="noindex">
|
|
||||||
}
|
|
||||||
|
|
||||||
<title>BTCPay Server</title>
|
|
||||||
|
|
||||||
@* CSS *@
|
|
||||||
<link href="@this.Context.Request.GetRelativePathOrAbsolute(themeManager.BootstrapUri)" rel="stylesheet" />
|
|
||||||
<link href="@this.Context.Request.GetRelativePathOrAbsolute(themeManager.CreativeStartUri)" rel="stylesheet" />
|
|
||||||
|
|
||||||
<bundle name="wwwroot/bundles/main-bundle.min.css" />
|
|
||||||
|
|
||||||
@* JS *@
|
|
||||||
<bundle name="wwwroot/bundles/main-bundle.min.js" />
|
|
||||||
|
|
||||||
@RenderSection("HeadScripts", required: false)
|
@RenderSection("HeadScripts", required: false)
|
||||||
@RenderSection("HeaderContent", false)
|
@RenderSection("HeaderContent", false)
|
||||||
|
|
Loading…
Add table
Reference in a new issue