mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
0c5b5ff49c
* add link * safer status message * refactor * small view cleanup
18 lines
563 B
Plaintext
18 lines
563 B
Plaintext
@model string
|
|
|
|
@if(!string.IsNullOrEmpty(Model))
|
|
{
|
|
var parsedModel = new StatusMessageModel(Model);
|
|
<div class="alert alert-@parsedModel.SeverityCSS alert-dismissible" role="alert">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
@if (!string.IsNullOrEmpty(parsedModel.Message))
|
|
{
|
|
@parsedModel.Message
|
|
}
|
|
@if (!string.IsNullOrEmpty(parsedModel.Html))
|
|
{
|
|
@Html.Raw(parsedModel.Html)
|
|
}
|
|
</div>
|
|
}
|