mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
18 lines
723 B
Text
18 lines
723 B
Text
|
@using BTCPayServer.Abstractions.Contracts
|
||
|
@inject ISettingsRepository _settingsRepository
|
||
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
||
|
@{ var theme = await _settingsRepository.GetTheme(); }
|
||
|
|
||
|
@if (theme.CustomTheme)
|
||
|
{
|
||
|
<link href="@Context.Request.GetRelativePathOrAbsolute(theme.CssUri)" rel="stylesheet" asp-append-version="true" />
|
||
|
}
|
||
|
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>
|
||
|
}
|
||
|
|