diff --git a/rhodecode/public/css/style.css b/rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css +++ b/rhodecode/public/css/style.css @@ -481,6 +481,13 @@ margin:0; padding:12px 9px 7px 24px; } +#header #header-inner #quick li ul li a.admin,#header #header-inner #quick li ul li a.admin:hover { +background:#FFF url("../images/icons/cog_edit.png") no-repeat 4px 9px; +width:167px; +margin:0; +padding:12px 9px 7px 24px; +} + #content #left { left:0; width:280px; diff --git a/rhodecode/templates/base/base.html b/rhodecode/templates/base/base.html --- a/rhodecode/templates/base/base.html +++ b/rhodecode/templates/base/base.html @@ -185,6 +185,21 @@ %endif
  • ${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}
  • ${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}
  • + + %if h.HasPermissionAll('hg.admin')('access admin main page'): +
  • + ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} + +
  • + %endif + + ## %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): ##
  • ## ${h.link_to(_('delete'),'#',class_='delete')}