mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
25 lines
799 B
Plaintext
25 lines
799 B
Plaintext
@using BTCPayServer.Abstractions.Extensions
|
|
@{
|
|
var parsedModel = TempData.GetStatusMessageModel();
|
|
}
|
|
|
|
@if (parsedModel != null)
|
|
{
|
|
<div class="alert alert-@parsedModel.SeverityCSS @(parsedModel.AllowDismiss? "alert-dismissible":"" ) @(ViewData["Margin"] ?? "mb-4") text-break" role="alert">
|
|
@if (parsedModel.AllowDismiss)
|
|
{
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
|
|
<vc:icon symbol="close" />
|
|
</button>
|
|
}
|
|
@if (!string.IsNullOrEmpty(parsedModel.Message))
|
|
{
|
|
<span style="white-space: pre-wrap;">@parsedModel.Message</span>
|
|
}
|
|
@if (!string.IsNullOrEmpty(parsedModel.Html))
|
|
{
|
|
@Safe.Raw(parsedModel.Html)
|
|
}
|
|
</div>
|
|
}
|