conga/luci/storage form-macros
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
luci/storage/form-macros +34 -0
@@ -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=""