aboutsummaryrefslogtreecommitdiff
path: root/views/alerts.haml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-05-01 16:11:51 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-05-01 16:11:51 +0100
commit9caa15360effe79b84197fd68fc22996b64e35aa (patch)
tree5b49819eb94bbd80d90d6fbf1d86be895e6e20ef /views/alerts.haml
parent2e5b3be3a89e54a986608c37d1093e17356b7e5c (diff)
Updated views to be neater with respect to notice/errors and in the case when no
alerts are found in a table.
Diffstat (limited to 'views/alerts.haml')
-rw-r--r--views/alerts.haml12
1 files changed, 4 insertions, 8 deletions
diff --git a/views/alerts.haml b/views/alerts.haml
index 896b5a3..88cb82c 100644
--- a/views/alerts.haml
+++ b/views/alerts.haml
@@ -1,11 +1,7 @@
-- if @grouped_alerts.length > 0
- %form#alerts{:method => :post, :action => '/alerts/acknowledge'}
- = partial('alerts_table')
- %h2 Actions
- %p= partial('acknowledge_input')
-- else
- .notice#alerts_table
- %p No alerts to display.
+%form#alerts{:method => :post, :action => '/alerts/acknowledge'}
+ = partial('alerts_table')
+ %h2 Actions
+ %p= partial('acknowledge_input')
:javascript
// Do the magic updates..
setTimeout("updateAlertsTable('#{@alert_type}','#{@group_by}');", 120000)