git-annex/templates/sidebar/alert.hamlet
2012-09-09 15:09:22 -04:00

21 lines
705 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
<i .icon-#{bootstrapIcon i}></i> #
#{h}
$else
$maybe i <- alertIcon alert
<i .icon-#{bootstrapIcon i}></i> #
<strong>#{h}</strong> #
$nothing
$maybe i <- alertIcon alert
<i .icon-#{bootstrapIcon i}></i> #
#{renderAlertMessage alert}
$maybe button <- alertButton alert
<br>
<a .btn .btn-primary href="@{ClickAlert aid}">
#{buttonLabel button}