feat: Logo-Bild in ShowEnvelope.cshtml über appsettings konfiguriert

This commit is contained in:
Developer 02
2024-09-17 14:50:23 +02:00
parent dd28ef7ab6
commit 590d7fb717
2 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
@{
var nonce = _accessor.HttpContext?.Items["csp-nonce"] as string;
var logo = _logoOpt.Value;
}
@using DigitalData.Core.DTO;
@using EnvelopeGenerator.Application.DTOs;
@@ -32,7 +33,7 @@
<span class="message navbar-brand">@($"{_localizer[WebKey.Hello]} {Model.Name}, {@envelope?.Message}".TrySanitize(_sanitizer))</span>
</div>
<div class="logo">
<img class="cursor-img" src="~/img/digital_data.svg" alt="...">
<img class="@logo.ShowPageClass" src="@logo.Src" alt="...">
</div>
</div>
</nav>

View File

@@ -130,5 +130,9 @@
"Name": "City",
"Platforms": [ "javascript" ]
}
]
],
"Logo": {
"Src": "/img/digital_data.svg",
"ShowPageClass": "cursor-img"
}
}