git-annex/templates/sidebar/alert.hamlet
Joey Hess a4c6b30e2c avoid using Blaze directly
New 0.5 changes the api, rather gratuitously, so run away. I can juse use
Hamlet here.
2012-10-31 13:27:56 -04:00

21 lines
648 B
Text

<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid}>
$if closable
<a .close onclick="(function( $ ) { $.get('@{CloseAlert aid}') })( jQuery );">&times;</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}