[Cluster-devel] conga/luci/storage form-macros
kupcevic at sourceware.org
kupcevic at sourceware.org
Mon Oct 16 20:57:14 UTC 2006
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-10-16 20:57:13
Modified files:
luci/storage : form-macros
Log message:
luci storage: reboot and log
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/form-macros.diff?cvsroot=cluster&r1=1.16&r2=1.17
--- conga/luci/storage/form-macros 2006/10/16 15:30:02 1.16
+++ conga/luci/storage/form-macros 2006/10/16 20:57:13 1.17
@@ -420,10 +420,44 @@
<div metal:define-macro="view-mappers-all-form">
+
+
+<script language="javascript" type="text/javascript">
+
+function popup_log(mylink, windowname)
+{
+ //Thanks to htmlcodetutorial.com
+ if (!window.focus) return true;
+ var href;
+ if (typeof(mylink) == 'string')
+ href=mylink;
+ else
+ href=mylink.href;
+ window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
+ return false;
+}
+
+</script>
+
+
<div metal:use-macro="here/form-macros/macros/tree-css"/>
<div metal:use-macro="here/form-macros/macros/content-scripts"/>
<div metal:use-macro="here/form-macros/macros/single-visible-span"/>
<div metal:use-macro="here/form-macros/macros/form-scripts"/>
+
+ <a tal:define="main_log_URL context/cluster/index_html/absolute_url"
+ tal:attributes="href python:main_log_URL + '?nodename=' + storagename + '&pagetype=17'"
+ onClick="return popup_log(this, 'notes')">
+ View recent log activity
+ </a>
+ <br/>
+ <a tal:define="main_reboot_URL python:'./?storagename=' + storagename + '&pagetype=44'"
+ tal:attributes="href main_reboot_URL">
+ Reboot this machine
+ </a>
+ <br/>
+ <br/>
+
<span tal:omit-tag=""
tal:define="mappers_all python:here.get_mappers_data(storage_report)">
<span tal:omit-tag=""
More information about the Cluster-devel
mailing list