2022-11-14 14:29:23 +01:00
|
|
|
@using BTCPayServer.Services
|
|
|
|
@inject ThemeSettings Theme
|
2024-05-09 02:18:02 +02:00
|
|
|
@inject UriResolver UriResolver
|
2022-11-14 14:29:23 +01:00
|
|
|
@model BTCPayServer.Components.MainLogo.MainLogoViewModel
|
|
|
|
|
2024-05-09 02:18:02 +02:00
|
|
|
@if (Theme.LogoUrl is not null)
|
2022-11-14 14:29:23 +01:00
|
|
|
{
|
2024-05-09 02:18:02 +02:00
|
|
|
var logoUrl = await UriResolver.Resolve(this.Context.Request.GetAbsoluteRootUri(), Theme.LogoUrl);
|
|
|
|
<img src="@logoUrl" alt="BTCPay Server" class="main-logo main-logo-custom @Model.CssClass" />
|
2022-11-14 14:29:23 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" role="img" alt="BTCPay Server" class="main-logo main-logo-btcpay @Model.CssClass">
|
2022-11-28 17:25:18 +09:00
|
|
|
<use href="~/img/logo.svg#small" class="main-logo-btcpay--small"/>
|
|
|
|
<use href="~/img/logo.svg#large" class="main-logo-btcpay--large"/>
|
2022-11-14 14:29:23 +01:00
|
|
|
</svg>
|
|
|
|
}
|