aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/web_interface.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-17 10:01:19 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-17 10:01:19 +0100
commit507d98bf547250551ead1cf6ee74b8bb384bf242 (patch)
treedc5471ff0feab5dc7474a625fb07b7bdb64705fb /lib/mauve/web_interface.rb
parentc50972e379859bffc30f8676192986e28840b107 (diff)
* Removed layout for ajax paths
* Changed time_to_s for xmpp template
Diffstat (limited to 'lib/mauve/web_interface.rb')
-rw-r--r--lib/mauve/web_interface.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mauve/web_interface.rb b/lib/mauve/web_interface.rb
index d999554..2610fc9 100644
--- a/lib/mauve/web_interface.rb
+++ b/lib/mauve/web_interface.rb
@@ -267,7 +267,7 @@ EOF
get '/ajax/alerts_table/:alert_type/:group_by' do
alerts_table(params)
- haml(:_alerts_table)
+ haml :_alerts_table, :layout => false
end
get '/ajax/alerts_table_alert/:alert_id' do
@@ -275,7 +275,7 @@ EOF
alert = Alert.get(params[:alert_id].to_i)
return status(404) unless alert
- haml(:_alerts_table_alert, :locals => {:alert => alert})
+ haml :_alerts_table_alert, :locals => {:alert => alert}, :layout => false
end
get '/ajax/alerts_table_alert_summary/:alert_id' do
@@ -283,7 +283,7 @@ EOF
alert = Alert.get(params[:alert_id].to_i)
return status(404) unless alert
- haml(:_alerts_table_alert_summary, :locals => {:alert => alert, :row_class => []})
+ haml :_alerts_table_alert_summary, :locals => {:alert => alert, :row_class => []}, :layout => false
end
get '/ajax/alerts_table_alert_detail/:alert_id' do
@@ -291,7 +291,7 @@ EOF
alert = Alert.get(params[:alert_id].to_i)
return status(404) unless alert
- haml(:_alerts_table_alert_detail, :locals => {:alert => alert, :row_class => []})
+ haml :_alerts_table_alert_detail, :locals => {:alert => alert, :row_class => []}, :layout => false
end