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} #
|
2014-04-21 11:05:52 +00:00
|
|
|
<strong>#{h}
|
|
|
|
\
|
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}
|
2013-11-23 04:54:08 +00:00
|
|
|
$if not (null buttons)
|
2012-09-09 18:59:46 +00:00
|
|
|
<br>
|
2013-11-23 04:54:08 +00:00
|
|
|
$forall (button, bnum) <- buttons
|
|
|
|
<a .btn :buttonPrimary button:.btn-primary :not (buttonPrimary button):.btn-success href="@{ClickAlert aid bnum}">
|
|
|
|
#{buttonLabel button}
|