cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] conga/luci/storage portlet_cluconfig_macro
@ 2007-10-23 15:48 rmccabe
  0 siblings, 0 replies; 2+ messages in thread
From: rmccabe @ 2007-10-23 15:48 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	conga
Branch: 	RHEL4
Changes by:	rmccabe at sourceware.org	2007-10-23 15:48:08

Modified files:
	luci/storage   : portlet_cluconfig_macro 

Log message:
	Get rid of the blank portal item link under volume groups

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/portlet_cluconfig_macro.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1&r2=1.1.4.1

--- conga/luci/storage/portlet_cluconfig_macro	2006/06/30 17:00:02	1.1
+++ conga/luci/storage/portlet_cluconfig_macro	2007/10/23 15:48:08	1.1.4.1
@@ -17,12 +17,15 @@
             tal:content="item/Title|nothing">
             Selected Item Title</a>
         <tal:children condition="python: parent_shows_children or children">
+
+		<tal:block tal:condition="python: item and item.has_key('Title') and item['Title'].strip()">
         <a tal:condition="not: cur_item"
            tal:attributes="href item/absolute_url;
                            title item/Description|nothing;
                            class string: visualIconPadding;"
             tal:content="item/Title|nothing">
             Unselected Item Title</a>
+		</tal:block>
         </tal:children>
     </div>
 



^ permalink raw reply	[flat|nested] 2+ messages in thread
* [Cluster-devel] conga/luci/storage portlet_cluconfig_macro
@ 2007-10-23 15:44 rmccabe
  0 siblings, 0 replies; 2+ messages in thread
From: rmccabe @ 2007-10-23 15:44 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe at sourceware.org	2007-10-23 15:44:38

Modified files:
	luci/storage   : portlet_cluconfig_macro 

Log message:
	get rid of the blank portal item under Volume Groups

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/portlet_cluconfig_macro.diff?cvsroot=cluster&r1=1.3&r2=1.4

--- conga/luci/storage/portlet_cluconfig_macro	2007/09/25 03:50:27	1.3
+++ conga/luci/storage/portlet_cluconfig_macro	2007/10/23 15:44:37	1.4
@@ -5,25 +5,27 @@
 	<li class="cluConfigTreeItem visualNoMarker"
 		tal:define="parent_shows_children show_children|nothing;
 					children item/children|nothing;
-					cur_item item/currentItem;"
+					cur_item item/currentItem | nothing"
 		tal:condition="python: (cur_item or parent_shows_children or children)">
 
 		<tal:level define="item_type_class python: 'type-' + item['cfg_type'];">
 			<div tal:attributes="class item_type_class">
 				<a tal:condition="cur_item"
-					tal:attributes="href item/absolute_url;
+					tal:attributes="
+						href item/absolute_url;
 						title item/Description|nothing;
-						class string: cluConfigTreeCurrentItem visualIconPadding"
-					tal:content="item/Title|nothing">Selected Item Title</a>
+						class string:cluConfigTreeCurrentItem visualIconPadding"
+					tal:content="item/Title|nothing" />
 
 				<tal:children condition="python: parent_shows_children or children">
-					<a tal:condition="not: cur_item"
-						tal:attributes="href item/absolute_url;
-							title item/Description|nothing;
-							class string: visualIconPadding;"
-						tal:content="item/Title|nothing">
-							Unselected Item Title
-					</a>
+					<tal:block condition="python:item and item.has_key('Title') and item['Title'].strip()">
+						<a tal:condition="not:cur_item"
+							tal:attributes="
+								href item/absolute_url;
+								title item/Description|nothing;
+								class string:visualIconPadding;"
+							tal:content="item/Title|nothing" />
+					</tal:block>
 				</tal:children>
 			</div>
 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-23 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-23 15:48 [Cluster-devel] conga/luci/storage portlet_cluconfig_macro rmccabe
  -- strict thread matches above, loose matches on Subject: below --
2007-10-23 15:44 rmccabe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).