From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/storage form-macros
Date: 16 Oct 2006 20:57:14 -0000 [thread overview]
Message-ID: <20061016205714.22975.qmail@sourceware.org> (raw)
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=""
next reply other threads:[~2006-10-16 20:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-16 20:57 kupcevic [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-10-22 19:30 [Cluster-devel] conga/luci/storage form-macros rmccabe
2007-10-20 1:36 rmccabe
2007-08-08 22:35 rmccabe
2006-10-25 16:26 kupcevic
2006-10-25 16:03 kupcevic
2006-10-06 22:59 kupcevic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061016205714.22975.qmail@sourceware.org \
--to=kupcevic@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.