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

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jan 12 21:36:05 EST 2011


Author: gfawcett
Date: 2011-01-12 21:36:03 -0500 (Wed, 12 Jan 2011)
New Revision: 1195

Modified:
   servres/trunk/conifer/templates/components/site.xhtml
Log:
bugfix

Modified: servres/trunk/conifer/templates/components/site.xhtml
===================================================================
--- servres/trunk/conifer/templates/components/site.xhtml	2011-01-13 00:49:53 UTC (rev 1194)
+++ servres/trunk/conifer/templates/components/site.xhtml	2011-01-13 02:36:03 UTC (rev 1195)
@@ -1,6 +1,5 @@
 <?python
 searchtext = _('search this site...')
-downloads_allowed = site.allows_downloads_to(user)
 ?>
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:py="http://genshi.edgewall.org/"
@@ -35,6 +34,7 @@
 	id="item_${item.id}">
       <abbr py:if="not item.item_type=='HEADING'" class="unapi-id" title="${item.id}"/>
       <?python
+	downloads_allowed = site.allows_downloads_to(user)
 	stat = callhook('item_status', item) if (item.item_type == 'PHYS') else None
 	valid = stat is not None
       ?>



More information about the open-ils-commits mailing list