blob: 73e7e7ded6a61e09c7e7860b111c442900218e4e (
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}>
$if closable
<a .close onclick="(function( $ ) { $.get('@{CloseAlert aid}') })( jQuery );">×</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="@{ClickAlert aid}">
#{buttonLabel button}
|