Mercurial > kallithea
diff pylons_app/templates/index.html @ 318:fdf9f6ee5217
Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 29 Jun 2010 20:45:03 +0200 |
parents | 42f5c36820ef |
children | 9c390ca19deb |
line wrap: on
line diff
--- a/pylons_app/templates/index.html Tue Jun 29 20:43:01 2010 +0200 +++ b/pylons_app/templates/index.html Tue Jun 29 20:45:03 2010 +0200 @@ -31,6 +31,7 @@ <td>${_('Atom')}</td> </tr> %for cnt,repo in enumerate(c.repos_list): + %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(repo['name'],'main page check'): <tr class="parity${cnt%2}"> <td>${h.link_to(repo['name'], h.url('summary_home',repo_name=repo['name']))}</td> @@ -48,6 +49,7 @@ <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_logo" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> </td> </tr> + %endif %endfor </table> </%def>