From: Stephen Soltesz Date: Fri, 28 Aug 2009 21:56:47 +0000 (+0000) Subject: add plain-text versions of the query output and nodelist as a test X-Git-Tag: Monitor-3.0-20~6 X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=commitdiff_plain;h=f9008a6a4ac90258f2520283fc52c2c128ba9fcd add plain-text versions of the query output and nodelist as a test removed inter-site link on actionlist report all errors by moving bmlog link to 'message' column in detailview --- diff --git a/web/MonitorWeb/monitorweb/templates/actionlist.kid b/web/MonitorWeb/monitorweb/templates/actionlist.kid index b1cd26b..caf993a 100644 --- a/web/MonitorWeb/monitorweb/templates/actionlist.kid +++ b/web/MonitorWeb/monitorweb/templates/actionlist.kid @@ -45,8 +45,9 @@ def zabbix_event_ack_link(eventid): - - ${act.hostname} + + ${act.hostname} diff --git a/web/MonitorWeb/monitorweb/templates/detailview.kid b/web/MonitorWeb/monitorweb/templates/detailview.kid index e86bbb1..ec7b131 100644 --- a/web/MonitorWeb/monitorweb/templates/detailview.kid +++ b/web/MonitorWeb/monitorweb/templates/detailview.kid @@ -226,13 +226,15 @@ from links import * - - ${act.message_id} - - latest bm log + + + ${act.message_id} + + + latest bm log + - -

+					

 				
 			
 		
diff --git a/web/MonitorWeb/monitorweb/templates/nodelist_plain.tmpl b/web/MonitorWeb/monitorweb/templates/nodelist_plain.tmpl
new file mode 100644
index 0000000..24bfad9
--- /dev/null
+++ b/web/MonitorWeb/monitorweb/templates/nodelist_plain.tmpl
@@ -0,0 +1,3 @@
+#for node in $query
+$node.node.hostname,$node.node.loginbase,$node.node.observed_status,$node.kernel,$node.node.plc_node_stats['last_contact']
+#end for
diff --git a/web/MonitorWeb/monitorweb/templates/query_plain.tmpl b/web/MonitorWeb/monitorweb/templates/query_plain.tmpl
new file mode 100644
index 0000000..2a24918
--- /dev/null
+++ b/web/MonitorWeb/monitorweb/templates/query_plain.tmpl
@@ -0,0 +1,10 @@
+#for key in sorted($fields.keys())
+$key,#slurp
+#end for
+
+#for row in $query
+  #for key in sorted($fields.keys())
+$row[$key],#slurp
+  #end for
+
+#end for