diff pylons_app/templates/index.html @ 373:3171614c0067

Added permissions check on repo switcher, and cached that for super short cache. repo switcher css updates
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 28 Jul 2010 02:25:47 +0200
parents 5cd6616b8673
children 6725742f029a
line wrap: on
line diff
--- a/pylons_app/templates/index.html	Wed Jul 28 01:52:12 2010 +0200
+++ b/pylons_app/templates/index.html	Wed Jul 28 02:25:47 2010 +0200
@@ -51,7 +51,7 @@
             </thead>
                         <tbody>
 					    %for cnt,repo in enumerate(c.repos_list):
-					        %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(repo['name'],'main page check'):
+					        %if repo['name'] in c.repo_switcher_list:
 					        <tr class="parity${cnt%2}">
 					            <td>
 					             %if repo['repo'].dbrepo.private: