mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
* Remove deprecated CSS options Closes #5945. * Greenfield: Add brandColor to store APIs Closes #5946. * Migrate file IDs to URLs Closes #5953. * Greenfield: Add CSS and logo URL to store settings API Closes #5945. * Add migration test * Store and Server branding can reference file's via fileid:ID * Add PaymentSoundUrl to Store API --------- Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
17 lines
676 B
Text
17 lines
676 B
Text
@using BTCPayServer.Services
|
|
@inject ThemeSettings Theme
|
|
@inject UriResolver UriResolver
|
|
@model BTCPayServer.Components.MainLogo.MainLogoViewModel
|
|
|
|
@if (Theme.LogoUrl is not null)
|
|
{
|
|
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" />
|
|
}
|
|
else
|
|
{
|
|
<svg xmlns="http://www.w3.org/2000/svg" role="img" alt="BTCPay Server" class="main-logo main-logo-btcpay @Model.CssClass">
|
|
<use href="~/img/logo.svg#small" class="main-logo-btcpay--small"/>
|
|
<use href="~/img/logo.svg#large" class="main-logo-btcpay--large"/>
|
|
</svg>
|
|
}
|