mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
16 lines
547 B
Text
16 lines
547 B
Text
@inject IFileService FileService
|
|
@using BTCPayServer.Abstractions.Contracts
|
|
@using BTCPayServer.Abstractions.Extensions
|
|
@model (string Title, string LogoFileId)
|
|
@{
|
|
var logoUrl = !string.IsNullOrEmpty(Model.LogoFileId)
|
|
? await FileService.GetFileUrl(Context.Request.GetAbsoluteRootUri(), Model.LogoFileId)
|
|
: null;
|
|
}
|
|
<header class="store-header" v-pre>
|
|
@if (!string.IsNullOrEmpty(logoUrl))
|
|
{
|
|
<img src="@logoUrl" alt="@Model.Title" class="store-logo"/>
|
|
}
|
|
<h1 class="store-name">@Model.Title</h1>
|
|
</header>
|