mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-24 14:50:50 +01:00
* Payment redesign
Guess who's back!
This reverts commit 4174fa648d
.
* Refactor PullPayment state string
Compatible with this one: https://github.com/btcpayserver/btcpayserver/pull/1834/files#diff-a9136096252382b110b9a7ac7747b95aR41
* Use unified copy to clipboard function
* Refactor status text class to helper function
23 lines
732 B
Text
23 lines
732 B
Text
@{
|
|
var parsedModel = TempData.GetStatusMessageModel();
|
|
}
|
|
|
|
@if (parsedModel != null)
|
|
{
|
|
<div class="alert alert-@parsedModel.SeverityCSS @(parsedModel.AllowDismiss? "alert-dismissible":"" ) @(ViewData["Margin"] ?? "mb-5") text-break" role="alert">
|
|
@if (parsedModel.AllowDismiss)
|
|
{
|
|
<button type="button" class="close only-for-js" data-dismiss="alert" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
}
|
|
@if (!string.IsNullOrEmpty(parsedModel.Message))
|
|
{
|
|
@parsedModel.Message
|
|
}
|
|
@if (!string.IsNullOrEmpty(parsedModel.Html))
|
|
{
|
|
@Safe.Raw(parsedModel.Html)
|
|
}
|
|
</div>
|
|
}
|