git-annex/templates/sidebar/alert.hamlet

26 lines
702 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} #
2012-08-02 13:08:58 +00:00
<strong>#{h}</strong> #
$nothing
$maybe i <- alertIcon alert
^{htmlIcon i} #
$if multiline
$forall l <- messagelines
#{l}<br>
$else
#{message}
$maybe button <- alertButton alert
<br>
<a .btn .btn-primary href="@{ClickAlert aid}">
#{buttonLabel button}