git-annex/templates/sidebar/alert.hamlet

28 lines
798 B
Text
Raw Normal View History

<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid}>
2012-07-29 16:39:10 +00:00
$if closable
<a .close onclick="(function( $ ) { $.get('@{CloseAlert aid}') })( jQuery );">&times;</a>
$maybe h <- renderAlertHeader alert
2012-07-29 16:39:10 +00:00
$if block
<h4 .alert-heading>
$maybe i <- alertIcon alert
^{htmlIcon i} #
#{h}
2012-07-29 16:39:10 +00:00
$else
$maybe i <- alertIcon alert
^{htmlIcon i} #
<strong>#{h}
\
$nothing
$maybe i <- alertIcon alert
^{htmlIcon i} #
$if multiline
$forall l <- messagelines
#{l}<br>
$else
#{message}
$if not (null buttons)
<br>
$forall (button, bnum) <- buttons
<a .btn :buttonPrimary button:.btn-primary :not (buttonPrimary button):.btn-success href="@{ClickAlert aid bnum}">
#{buttonLabel button}