aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar/alert.hamlet
blob: ee15f16219051235d2b9e0507251d67549b9e417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<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 name <- alertIcon alert
          <i .icon-#{name}></i> #
        #{h}
    $else
      $maybe name <- alertIcon alert
        <i .icon-#{name}></i> #
      <strong>#{h}</strong> #
  $nothing
    $maybe name <- alertIcon alert
      <i .icon-#{name}></i> #
  #{renderAlertMessage alert}
  $maybe button <- alertButton alert
    <br>
    <a .btn .btn-primary href="@{ClickAlert aid}">
      #{buttonLabel button}