aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar/alert.hamlet
blob: c5138d79a498c1dbfd4223a3b3ffe5060289f9c0 (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 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}