git-annex/templates/alert.hamlet
Joey Hess 703f24b83e remove href
Avoids a reload of the page when closing an alert.
2012-07-30 15:39:24 -04:00

9 lines
332 B
Text

<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid} :closable:onclick="(function( $ ) { $.get('@{closealert}') })( jQuery );">
$if closable
<a .close data-dismiss="alert">&times;</a>
$maybe h <- heading
$if block
<h4 class="alert-heading">#{h}</h4>
$else
<strong>#{h}</strong>
^{widget}