2012-09-09 05:02:44 +00:00
|
|
|
<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid}>
|
2012-07-29 16:39:10 +00:00
|
|
|
$if closable
|
2012-09-09 05:02:44 +00:00
|
|
|
<a .close onclick="(function( $ ) { $.get('@{CloseAlert aid}') })( jQuery );">×</a>
|
2012-09-08 23:57:15 +00:00
|
|
|
$maybe h <- renderAlertHeader alert
|
2012-07-29 16:39:10 +00:00
|
|
|
$if block
|
2012-08-06 21:15:27 +00:00
|
|
|
<h4 .alert-heading>
|
2012-09-09 19:09:22 +00:00
|
|
|
$maybe i <- alertIcon alert
|
2012-10-31 17:27:56 +00:00
|
|
|
^{htmlIcon i} #
|
2012-08-06 21:15:27 +00:00
|
|
|
#{h}
|
2012-07-29 16:39:10 +00:00
|
|
|
$else
|
2012-09-09 19:09:22 +00:00
|
|
|
$maybe i <- alertIcon alert
|
2012-10-31 17:27:56 +00:00
|
|
|
^{htmlIcon i} #
|
2012-08-02 13:08:58 +00:00
|
|
|
<strong>#{h}</strong> #
|
2012-09-09 18:59:46 +00:00
|
|
|
$nothing
|
2012-09-09 19:09:22 +00:00
|
|
|
$maybe i <- alertIcon alert
|
2012-10-31 17:27:56 +00:00
|
|
|
^{htmlIcon i} #
|
2013-04-24 15:45:41 +00:00
|
|
|
$if multiline
|
|
|
|
$forall l <- messagelines
|
|
|
|
#{l}<br>
|
|
|
|
$else
|
|
|
|
#{message}
|
2012-09-09 18:59:46 +00:00
|
|
|
$maybe button <- alertButton alert
|
|
|
|
<br>
|
|
|
|
<a .btn .btn-primary href="@{ClickAlert aid}">
|
|
|
|
#{buttonLabel button}
|