diff options
Diffstat (limited to 'templates/sidebar/alert.hamlet')
-rw-r--r-- | templates/sidebar/alert.hamlet | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/sidebar/alert.hamlet b/templates/sidebar/alert.hamlet new file mode 100644 index 000000000..a339874a2 --- /dev/null +++ b/templates/sidebar/alert.hamlet @@ -0,0 +1,18 @@ +<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid} :closable:onclick="(function( $ ) { $.get('@{closealert}') })( jQuery );"> + $if closable + <a .close data-dismiss="alert">×</a> + $maybe h <- heading + $if block + <h4 .alert-heading> + $case icon + $of Nothing + $of Just name + <i class="icon-#{name}"></i> # + #{h} + $else + $case icon + $of Nothing + $of Just name + <i class="icon-#{name}"></i> # + <strong>#{h}</strong> # + #{message} |