hide tab-bar admin-options from non-administrators
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 3 Apr 2009 01:31:27 +0000 (01:31 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 3 Apr 2009 01:31:27 +0000 (01:31 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@248 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/templates/tabbar.xhtml

index ac0be18..093b7b0 100644 (file)
   <li><a href="/syrup/">Home</a></li>
   <li><a href="/syrup/browse/">Browse</a></li>
   <li class="active"><a href="/syrup/course/">My Courses</a></li>
-  <li><a href="/syrup/admin/">Admin Options</a></li>
-  <li><a href="/syrup/phys/">Physical Item Processing</a></li>
+  <div py:strip="True"
+       py:if="request.user.is_staff">
+    <li><a href="/syrup/admin/">Admin Options</a></li>
+    <li><a href="/syrup/phys/">Physical Item Processing</a></li>
+  </div>
 </ul>
 </html>