diff --git a/rhodecode/templates/admin/repo_groups/repo_group_edit.mako b/rhodecode/templates/admin/repo_groups/repo_group_edit.mako --- a/rhodecode/templates/admin/repo_groups/repo_group_edit.mako +++ b/rhodecode/templates/admin/repo_groups/repo_group_edit.mako @@ -13,7 +13,7 @@ %def> <%def name="menu_bar_subnav()"> - ${self.repo_group_menu(active='options')} + ${self.repo_group_menu(active='settings')} %def> <%def name="main_content()"> diff --git a/rhodecode/templates/admin/repos/repo_edit.mako b/rhodecode/templates/admin/repos/repo_edit.mako --- a/rhodecode/templates/admin/repos/repo_edit.mako +++ b/rhodecode/templates/admin/repos/repo_edit.mako @@ -20,7 +20,7 @@ %def> <%def name="menu_bar_subnav()"> - ${self.repo_menu(active='options')} + ${self.repo_menu(active='settings')} %def> <%def name="main_content()"> diff --git a/rhodecode/templates/base/base.mako b/rhodecode/templates/base/base.mako --- a/rhodecode/templates/base/base.mako +++ b/rhodecode/templates/base/base.mako @@ -265,14 +265,16 @@ %endif + %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): +