2022-03-02 18:28:12 +01:00
|
|
|
@using BTCPayServer.Abstractions.Extensions
|
2022-05-24 13:18:16 +09:00
|
|
|
@using BTCPayServer.Services
|
|
|
|
@inject ThemeSettings Theme
|
2021-09-03 09:16:36 +02:00
|
|
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
|
|
|
2022-05-24 13:18:16 +09:00
|
|
|
@if (Theme.CustomTheme)
|
2021-09-03 09:16:36 +02:00
|
|
|
{
|
2022-05-24 13:18:16 +09:00
|
|
|
<link href="@Context.Request.GetRelativePathOrAbsolute(Theme.CssUri)" rel="stylesheet" asp-append-version="true" />
|
2021-09-03 09:16:36 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<link href="~/main/themes/default.css" asp-append-version="true" rel="stylesheet" />
|
|
|
|
<link href="~/main/themes/default-dark.css" asp-append-version="true" rel="stylesheet" id="DarkThemeLinkTag" />
|
|
|
|
<script src="~/js/theme-switch.js" asp-append-version="true"></script>
|
|
|
|
<noscript><style>.btcpay-theme-switch { display: none !important; }</style></noscript>
|
|
|
|
}
|
|
|
|
|