Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
372:1fa58ca0a77e | 373:3171614c0067 |
---|---|
49 <th class="left">${_('Atom')}</th> | 49 <th class="left">${_('Atom')}</th> |
50 </tr> | 50 </tr> |
51 </thead> | 51 </thead> |
52 <tbody> | 52 <tbody> |
53 %for cnt,repo in enumerate(c.repos_list): | 53 %for cnt,repo in enumerate(c.repos_list): |
54 %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(repo['name'],'main page check'): | 54 %if repo['name'] in c.repo_switcher_list: |
55 <tr class="parity${cnt%2}"> | 55 <tr class="parity${cnt%2}"> |
56 <td> | 56 <td> |
57 %if repo['repo'].dbrepo.private: | 57 %if repo['repo'].dbrepo.private: |
58 <img alt="${_('private')}" src="/images/icons/lock.png"/> | 58 <img alt="${_('private')}" src="/images/icons/lock.png"/> |
59 %else: | 59 %else: |