[open-ils-commits] r227 - servres/trunk/conifer/templates/components (gfawcett)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Mar 25 21:54:01 EDT 2009


Author: gfawcett
Date: 2009-03-25 21:54:00 -0400 (Wed, 25 Mar 2009)
New Revision: 227

Modified:
   servres/trunk/conifer/templates/components/course.xhtml
Log:
ugly hack to keep item menublock together (with nbsp's)

Modified: servres/trunk/conifer/templates/components/course.xhtml
===================================================================
--- servres/trunk/conifer/templates/components/course.xhtml	2009-03-26 01:36:13 UTC (rev 226)
+++ servres/trunk/conifer/templates/components/course.xhtml	2009-03-26 01:54:00 UTC (rev 227)
@@ -34,15 +34,12 @@
       <div class="mainline">
 	<a href="${item.item_url()}" class="mainlink">${item}</a> 
 	<span class="menublock" py:if="not (item.item_type=='HEADING' and not edit)">
-	<span py:if="item.needs_meta_link()">
-	<a href="${item.item_url('meta')}">about</a> </span>
-	<span py:if="edit">
-	  &bull; <a href="${item.item_url('edit/')}">edit</a>
+
+	  <!-- !I'm really sorry, this is ugly, but I want
+	       non-breaking spaces here, so that on long-named items,
+	       the links will stay togeter. A better way?  -->
+	  <span py:if="item.needs_meta_link()"><a href="${item.item_url('meta')}">about</a>&#160;</span><span py:if="edit">&bull;&#160;<a href="${item.item_url('edit/')}">edit</a></span><span py:if="edit">&#160;&bull;&#160;<a href="${item.item_url('relocate/')}">put under heading</a></span>
 	</span>
-	<span py:if="edit">
-	  &bull; <a href="${item.item_url('relocate/')}">put under heading</a>
-	</span>
-      </span>
       </div>
       <!-- !to show a full tree, uncomment the following: -->
       ${show_tree(subs, edit)}



More information about the open-ils-commits mailing list