auth: reduced usage of raw auth calls inside templates
This commit is contained in:
parent
5afda5d73b
commit
0a8e792efc
19 changed files with 64 additions and 59 deletions
|
|
@ -25,7 +25,7 @@
|
|||
<div class="box">
|
||||
<div class="title">
|
||||
<ul class="links">
|
||||
%if h.HasPermissionAny('hg.admin','hg.create.repository')():
|
||||
%if c.can_create_repo:
|
||||
<li>
|
||||
<a href="${h.route_path('repo_new')}" class="btn btn-small btn-success">${_(u'Add Repository')}</a>
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue