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