aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-19 10:48:59 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-19 10:48:59 +0100
commit334aa01056f199123e81f5bff44dbdb998562fdf (patch)
tree5d0ba385e65585a47d0af84788458a7d68ee74d0 /views
parentc1cf28d9dcc63622b5df1caeab3a2baf66811443 (diff)
Added last updated at to alerts page. Fixes #1831.
* Also upped timeouts from 5s to 30s for ajax list refreshes.
Diffstat (limited to 'views')
-rw-r--r--views/_alerts_table.haml5
-rw-r--r--views/alerts.haml2
2 files changed, 6 insertions, 1 deletions
diff --git a/views/_alerts_table.haml b/views/_alerts_table.haml
index 99a4e13..40b2b1c 100644
--- a/views/_alerts_table.haml
+++ b/views/_alerts_table.haml
@@ -12,3 +12,8 @@
%th#summary Summary
%th#time At
= partial("alerts_table_group", :collection => @grouped_alerts)
+ %tr
+ %td{ :colspan => 3}
+ %address
+ Last updated at
+ = Time.now
diff --git a/views/alerts.haml b/views/alerts.haml
index 54bfff7..3018d6c 100644
--- a/views/alerts.haml
+++ b/views/alerts.haml
@@ -8,5 +8,5 @@
%p No alerts to display.
:javascript
// Do the magic updates..
- setInterval("updateAlertsTable('#{@alert_type}','#{@group_by}');", 30000)
+ setInterval("updateAlertsTable('#{@alert_type}','#{@group_by}');", 120000)