Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
317:c961b78ff0a0 | 318:fdf9f6ee5217 |
---|---|
29 <td>${get_sort(_('Contact'))}</td> | 29 <td>${get_sort(_('Contact'))}</td> |
30 <td>${_('RSS')}</td> | 30 <td>${_('RSS')}</td> |
31 <td>${_('Atom')}</td> | 31 <td>${_('Atom')}</td> |
32 </tr> | 32 </tr> |
33 %for cnt,repo in enumerate(c.repos_list): | 33 %for cnt,repo in enumerate(c.repos_list): |
34 %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(repo['name'],'main page check'): | |
34 <tr class="parity${cnt%2}"> | 35 <tr class="parity${cnt%2}"> |
35 <td>${h.link_to(repo['name'], | 36 <td>${h.link_to(repo['name'], |
36 h.url('summary_home',repo_name=repo['name']))}</td> | 37 h.url('summary_home',repo_name=repo['name']))}</td> |
37 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> | 38 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> |
38 <td>${h.age(repo['last_change'])}</td> | 39 <td>${h.age(repo['last_change'])}</td> |
46 </td> | 47 </td> |
47 <td> | 48 <td> |
48 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_logo" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> | 49 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_logo" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> |
49 </td> | 50 </td> |
50 </tr> | 51 </tr> |
52 %endif | |
51 %endfor | 53 %endfor |
52 </table> | 54 </table> |
53 </%def> | 55 </%def> |