From: jparsons@sourceware.org <jparsons@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/cluster form-macros form-chooser in ...
Date: 13 Aug 2006 16:16:17 -0000 [thread overview]
Message-ID: <20060813161617.29270.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: jparsons at sourceware.org 2006-08-13 17:16:17
Modified files:
luci/cluster : form-macros form-chooser index_html
Log message:
logging support
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.34&r2=1.35
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-chooser.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/index_html.diff?cvsroot=cluster&r1=1.8&r2=1.9
--- conga/luci/cluster/form-macros 2006/08/13 14:54:08 1.34
+++ conga/luci/cluster/form-macros 2006/08/13 16:16:17 1.35
@@ -720,6 +720,7 @@
</span>
</td>
</tr>
+ <tr><td><a href="" tal:attributes="href nd/logurl" onClick="return popup_log(this, 'notes')">Show recent log activity for this node</a>
</table>
</td>
</tr>
@@ -738,6 +739,13 @@
<h2>Node Configuration Form</h2>
</div>
+<div metal:define-macro="nodelogs-form">
+ <h2>Recent Log Activity for <span tal:content="request/nodename"/></h2>
+ ---------------------------------------------------------------------------------------
+ <br/>
+ <span tal:content="python:here.getLogsForNode(request)"/>
+</div>
+
<div metal:define-macro="nodeadd-form">
<script type="text/javascript" src="/luci/homebase/homebase_common.js">
</script>
--- conga/luci/cluster/form-chooser 2006/08/02 17:20:20 1.5
+++ conga/luci/cluster/form-chooser 2006/08/13 16:16:17 1.6
@@ -56,6 +56,9 @@
<span tal:omit-tag="" tal:condition="python: ptype == '16'">
<div metal:use-macro="here/form-macros/macros/nodeprocess-form"/>
</span>
+ <span tal:omit-tag="" tal:condition="python: ptype == '17'">
+ <div metal:use-macro="here/form-macros/macros/nodelogs-form"/>
+ </span>
<span tal:omit-tag="" tal:condition="python: ptype == '20'">
<div metal:use-macro="here/form-macros/macros/servicelist-form"/>
</span>
--- conga/luci/cluster/index_html 2006/08/03 18:45:13 1.8
+++ conga/luci/cluster/index_html 2006/08/13 16:16:17 1.9
@@ -76,6 +76,18 @@
}
return false;
}
+ 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>
<metal:javascriptslot define-slot="javascript_head_slot" />
reply other threads:[~2006-08-13 16:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20060813161617.29270.qmail@sourceware.org \
--to=jparsons@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.