diff options
-rw-r--r-- | templates/sidebar/alert.hamlet | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/templates/sidebar/alert.hamlet b/templates/sidebar/alert.hamlet index 73e7e7ded..ee15f1621 100644 --- a/templates/sidebar/alert.hamlet +++ b/templates/sidebar/alert.hamlet @@ -4,21 +4,18 @@ $maybe h <- renderAlertHeader alert $if block <h4 .alert-heading> - $case alertIcon alert - $of Nothing - $of Just name - <i .icon-#{name}></i> # + $maybe name <- alertIcon alert + <i .icon-#{name}></i> # #{h} $else - $case alertIcon alert - $of Nothing - $of Just name - <i .icon-#{name}></i> # + $maybe name <- alertIcon alert + <i .icon-#{name}></i> # <strong>#{h}</strong> # + $nothing + $maybe name <- alertIcon alert + <i .icon-#{name}></i> # #{renderAlertMessage alert} - $case alertButton alert - $of Nothing - $of Just button - <br> - <a .btn .btn-primary href="@{ClickAlert aid}"> - #{buttonLabel button} + $maybe button <- alertButton alert + <br> + <a .btn .btn-primary href="@{ClickAlert aid}"> + #{buttonLabel button} |