blob: a873d171fe6517972251f22d195a0e8f4c5b90fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid} :closable:onclick="(function( $ ) { $.get('@{CloseAlert aid}') })( jQuery );">
$if closable
<a .close>×</a>
$maybe h <- renderAlertHeader alert
$if block
<h4 .alert-heading>
$case alertIcon alert
$of Nothing
$of Just name
<i .icon-#{name}></i> #
#{h}
$else
$case alertIcon alert
$of Nothing
$of Just name
<i .icon-#{name}></i> #
<strong>#{h}</strong> #
#{renderAlertMessage alert}
$case alertButton alert
$of Nothing
$of Just button
<br>
<a .btn .btn-primary href="#{buttonUrl button}">
#{buttonLabel button}
|