fix display of icon in block alert heading

This commit is contained in:
Joey Hess 2012-08-06 17:15:27 -04:00
parent 8f1a9ef8b5
commit 77cd327170
2 changed files with 10 additions and 6 deletions

View file

@ -211,7 +211,6 @@ syncAlert rs = baseActivityAlert
{ alertHeader = Just $ tenseWords { alertHeader = Just $ tenseWords
[Tensed "Syncing" "Synced", "with", showRemotes rs] [Tensed "Syncing" "Synced", "with", showRemotes rs]
, alertData = [] , alertData = []
, alertBlockDisplay = True
, alertPriority = Low , alertPriority = Low
} }

View file

@ -1,13 +1,18 @@
<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid} :closable:onclick="(function( $ ) { $.get('@{closealert}') })( jQuery );"> <div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid} :closable:onclick="(function( $ ) { $.get('@{closealert}') })( jQuery );">
$if closable $if closable
<a .close data-dismiss="alert">&times;</a> <a .close data-dismiss="alert">&times;</a>
$case icon
$of Nothing
$of Just name
<i class="icon-#{name}"></i> #
$maybe h <- heading $maybe h <- heading
$if block $if block
<h4 .alert-heading>#{h}</h4> # <h4 .alert-heading>
$case icon
$of Nothing
$of Just name
<i class="icon-#{name}"></i> #
#{h}
$else $else
$case icon
$of Nothing
$of Just name
<i class="icon-#{name}"></i> #
<strong>#{h}</strong> # <strong>#{h}</strong> #
#{message} #{message}