git-annex-3.20121112: templates/sidebar/alert.hamlet
<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>
$maybe i <- alertIcon alert
^{htmlIcon i} #
#{h}
$else
$maybe i <- alertIcon alert
^{htmlIcon i} #
<strong>#{h}</strong> #
$nothing
$maybe i <- alertIcon alert
^{htmlIcon i} #
#{renderAlertMessage alert}
$maybe button <- alertButton alert
<br>
<a .btn .btn-primary href="@{ClickAlert aid}">
#{buttonLabel button}