Mercurial > kallithea
changeset 3660:38939a5ddae0 beta
fixed dead links for non-admin users
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 04 Apr 2013 00:18:06 +0200 |
parents | 77e6e941001f |
children | 2487fc74c864 |
files | rhodecode/templates/admin/repos_groups/repos_groups_show.html rhodecode/templates/base/base.html |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/admin/repos_groups/repos_groups_show.html Thu Apr 04 00:01:13 2013 +0200 +++ b/rhodecode/templates/admin/repos_groups/repos_groups_show.html Thu Apr 04 00:18:06 2013 +0200 @@ -7,7 +7,11 @@ <%def name="breadcrumbs_links()"> - ${h.link_to(_('Admin'),h.url('admin_home'))} + %if h.HasPermissionAny('hg.admin')(): + ${h.link_to(_('Admin'),h.url('admin_home'))} + %else: + ${_('Admin')} + %endif » ${_('Repository groups')} </%def>
--- a/rhodecode/templates/base/base.html Thu Apr 04 00:01:13 2013 +0200 +++ b/rhodecode/templates/base/base.html Thu Apr 04 00:18:06 2013 +0200 @@ -294,7 +294,7 @@ </li> % elif c.rhodecode_user.groups_admin: <li ${is_current('admin')}> - <a class="menu_link admin childs" title="${_('Admin')}" href="${h.url('admin_home')}"> + <a class="menu_link admin childs" title="${_('Admin')}"> ${_('Admin')} </a> ${admin_menu_simple()}