Changeset - b02a5406924f
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 12 years ago 2013-06-03 03:28:04
marcin@python-works.com
Hide add repository button in admin repositories view if we
don't have permission to create repositories
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/admin/repos/repos.html
Show inline comments
 
@@ -17,9 +17,11 @@
 
    <div class="title">
 
        ${self.breadcrumbs()}
 
        <ul class="links">
 
         %if h.HasPermissionAny('hg.admin','hg.create.repository')():
 
          <li>
 
            <span>${h.link_to(_(u'Add repository'),h.url('new_repo'))}</span>
 
          </li>
 
         %endif
 
        </ul>
 
    </div>
 
    <div class="table yui-skin-sam" id="repos_list_wrap"></div>
0 comments (0 inline, 0 general)