All of lore.kernel.org
 help / color / mirror / Atom feed
From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci cluster/form-macros homebase/form-m ...
Date: 9 Aug 2007 21:05:28 -0000	[thread overview]
Message-ID: <20070809210528.1242.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe at sourceware.org	2007-08-09 21:05:28

Modified files:
	luci/cluster   : form-macros 
	luci/homebase  : form-macros luci_homebase.css 

Log message:
	Fixes from the RHEL5 branch

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.207&r2=1.208
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/form-macros.diff?cvsroot=cluster&r1=1.58&r2=1.59
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/luci_homebase.css.diff?cvsroot=cluster&r1=1.41&r2=1.42

--- conga/luci/cluster/form-macros	2007/08/09 04:37:20	1.207
+++ conga/luci/cluster/form-macros	2007/08/09 21:05:28	1.208
@@ -3291,21 +3291,28 @@
 			</td></tr>
 		</tfoot>
 		<tbody class="systemsTable">
-			<tr class="systemsTable" tal:repeat="demon nodeinfo/d_states">
-				<td class="systemsTable"><span tal:replace="demon/name"/></td>
-				<td class="systemsTable"><span tal:replace="python: demon['running'] == 'true' and 'yes' or 'no'" /></td>
+			<tr class="systemsTable" tal:repeat="daemon nodeinfo/d_states">
+				<td class="systemsTable"><span tal:replace="daemon/name"/></td>
+				<td class="systemsTable">
+					<tal:block tal:condition="python:daemon['name'] == 'cman'">
+						<span tal:replace="python: (daemon['running'] == 'true' or nodeinfo['nodestate'] == '0') and 'yes' or 'no'" />
+					</tal:block>
+					<tal:block tal:condition="python:daemon['name'] != 'cman'">
+						<span tal:replace="python: daemon['running'] == 'true' and 'yes' or 'no'" />
+					</tal:block>
+				</td>
 				<td class="systemsTable">
 					<input type="hidden" tal:attributes="
-						name python: '__daemon__:' + demon['name'] + ':';
-						value demon/name" />
+						name python: '__daemon__:' + daemon['name'] + ':';
+						value daemon/name" />
 
 					<input type="hidden" tal:attributes="
-						name python: '__daemon__:' + demon['name'] + ':';
-						value python: demon['enabled'] == 'true' and '1' or '0'" />
+						name python: '__daemon__:' + daemon['name'] + ':';
+						value python: daemon['enabled'] == 'true' and '1' or '0'" />
 
 					<input type="checkbox" tal:attributes="
-						name python: '__daemon__:' + demon['name'] + ':';
-						checked python: demon['enabled'] == 'true' and 'checked'" />
+						name python: '__daemon__:' + daemon['name'] + ':';
+						checked python: daemon['enabled'] == 'true' and 'checked'" />
 				</td>
 			</tr>
 		</tbody>
--- conga/luci/homebase/form-macros	2007/07/11 22:47:07	1.58
+++ conga/luci/homebase/form-macros	2007/08/09 21:05:28	1.59
@@ -493,8 +493,9 @@
 			Clusters
 		</h3>
 
-		<tal:block tal:repeat="c python:systems[0]">
-			<div class="hbcheckdiv"
+		<ul class="vanilla">
+		<li class="vanilla" tal:repeat="c python:systems[0]">
+			<tal:block
 					tal:define="cfname python: here.strFilter('[^0-9A-Za-z_-]', '_', c)"
 					tal:attributes="id python: cfname">
 
@@ -509,15 +510,17 @@
 					tal:attributes="
 						name python:'__CLUSTER:X___' + cfname"
 				/>
-				<span tal:omit-tag="" tal:content="python:c" />
-			</div>
-		</tal:block>
+				<span tal:content="python:c" />
+			</tal:block>
+		</li>
+		</ul>
 
-		<div tal:omit-tag="" tal:condition="python: systems[1] and len(systems[1]) > 0">
+		<tal:block tal:condition="python: systems[1] and len(systems[1]) > 0">
 			<h3 class="homebase">Storage Systems</h3>
 
-			<tal:block tal:repeat="s python: systems[1]">
-				<div class="hbcheckdiv"
+			<ul class="vanilla">
+			<li class="vanilla" tal:repeat="s python: systems[1]">
+				<tal:block
 					tal:define="sfname python: here.strFilter('[^0-9A-Za-z_-]', '_', s)">
 					<input type="checkbox" class="homebase"
 						tal:define="global num_systems python:num_systems + 1"
@@ -530,9 +533,10 @@
 					<input type="hidden" value=""
 						tal:attributes="name python:'__SYSTEM:X___' + sfname" />
 					<span class="hbText" tal:omit-tag="" tal:content="python:s"/>
-				</div>
-			</tal:block>
-		</div>
+				</tal:block>
+			</li>
+			</ul>
+		</tal:block>
 
 		<input type="hidden" id="num_storage"
 			tal:attributes="value python: num_systems + 1" />
--- conga/luci/homebase/luci_homebase.css	2007/06/28 16:02:50	1.41
+++ conga/luci/homebase/luci_homebase.css	2007/08/09 21:05:28	1.42
@@ -12,12 +12,17 @@
 	float: left ! important;
 	vertical-align: middle;
 	background: #dee7ec;
+	margin-right: +.3333em;
 }
 
 input.pad_left {
 	margin-left: +.3333em;
 }
 
+input.pad_right {
+	margin-right: +.3333em;
+}
+
 td.pad_right {
 	padding-right: +.6666em;
 }



             reply	other threads:[~2007-08-09 21:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-09 21:05 rmccabe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-05-18  2:37 [Cluster-devel] conga/luci cluster/form-macros homebase/form-m rmccabe

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=20070809210528.1242.qmail@sourceware.org \
    --to=rmccabe@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.