mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
2e6246e385
* Move TagHelpers to Abstractions Makes them available for use in plugins. Also cleans up the tag helper references in the view code: As we have it in the root view imports, the individual directives in the views are superfluous. * Move CurrenciesSuggestionsTagHelper back To get rid of the Rating dependency in Abstractions.
17 lines
631 B
Plaintext
17 lines
631 B
Plaintext
@using BTCPayServer.Abstractions.Extensions
|
|
@using BTCPayServer.Services
|
|
@inject ThemeSettings Theme
|
|
|
|
@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>
|
|
}
|
|
|