a4c6b30e2c
New 0.5 changes the api, rather gratuitously, so run away. I can juse use Hamlet here.
21 lines
648 B
Text
21 lines
648 B
Text
<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid}>
|
|
$if closable
|
|
<a .close onclick="(function( $ ) { $.get('@{CloseAlert aid}') })( jQuery );">×</a>
|
|
$maybe h <- renderAlertHeader alert
|
|
$if block
|
|
<h4 .alert-heading>
|
|
$maybe i <- alertIcon alert
|
|
^{htmlIcon i} #
|
|
#{h}
|
|
$else
|
|
$maybe i <- alertIcon alert
|
|
^{htmlIcon i} #
|
|
<strong>#{h}</strong> #
|
|
$nothing
|
|
$maybe i <- alertIcon alert
|
|
^{htmlIcon i} #
|
|
#{renderAlertMessage alert}
|
|
$maybe button <- alertButton alert
|
|
<br>
|
|
<a .btn .btn-primary href="@{ClickAlert aid}">
|
|
#{buttonLabel button}
|