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
@@ -1,113 +1,132 @@
## -*- coding: utf-8 -*-
-
-
-
- ${next.title()}
-
-
-
-
- ${self.css()}
-
- ${self.js()}
-
-
-
-
+
-
-
-
-
+
+
+
-
+### MAKO DEFS ###
+<%def name="page_nav()">
+ ${self.menu()}
+%def>
-### MAKO DEFS ###
-<%def name="page_nav()">
- ${self.menu()}
+<%def name="breadcrumbs()">
+
+ ${self.breadcrumbs_links()}
+
%def>
+
<%def name="menu(current=None)">
<%
def is_current(selected):
@@ -121,26 +140,75 @@
-
+
↓
-
- %for repo in c.cached_repo_list:
-
- %if repo['repo'].dbrepo.private:
-
${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['repo'].dbrepo.repo_type)}
- %else:
-
${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['repo'].dbrepo.repo_type)}
- %endif
- %endfor
-
+
+
-
+
${_('Summary')}
@@ -148,7 +216,7 @@
##
##
##
- ##
+ ##
##
## ${_('Shortlog')}
##
@@ -156,7 +224,7 @@
-
+
${_('Changelog')}
@@ -165,16 +233,16 @@
-
+
${_('Switch to')}
-
- ${h.link_to('%s (%s)' % (_('branches'),len(c.repository_branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
+ ${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
- %if c.repository_branches.values():
- %for cnt,branch in enumerate(c.repository_branches.items()):
+ %if c.rhodecode_repo.branches.values():
+ %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()):
- ${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}
%endfor
%else:
@@ -183,10 +251,10 @@
-
- ${h.link_to('%s (%s)' % (_('tags'),len(c.repository_tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
+ ${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
- %if c.repository_tags.values():
- %for cnt,tag in enumerate(c.repository_tags.items()):
+ %if c.rhodecode_repo.tags.values():
+ %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()):
- ${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}
%endfor
%else:
@@ -199,7 +267,7 @@
-
-
+
${_('Files')}
@@ -208,7 +276,7 @@
-
-
+
${_('Options')}
@@ -223,14 +291,16 @@
- ${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'):
- -
+ % if h.HasPermissionAll('hg.admin')('access admin main page'):
+
-
${h.link_to(_('admin'),h.url('admin_home'),class_='admin')}
<%def name="admin_menu()">
- ${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}
- ${h.link_to(_('repositories'),h.url('repos'),class_='repos')}
+ - ${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}
- ${h.link_to(_('users'),h.url('users'),class_='users')}
+ - ${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}
- ${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}
- ${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}
- ${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}
@@ -238,31 +308,28 @@
%def>
${admin_menu()}
-
- %endif
-
+
+ % endif
-
+
-
+
- ${c.repository_followers}
+ ${c.repository_followers}
-
+
-
+
${c.repository_forks}
-
-
%else:
##ROOT MENU
@@ -270,25 +337,25 @@
-
+
${_('Home')}
- %if c.rhodecode_user.username != 'default':
-
+ % if c.rhodecode_user.username != 'default':
+
-
+
${_('Journal')}
-
- %endif
+
+ % endif
-
+
${_('Search')}
@@ -298,7 +365,7 @@
-
+
${_('Admin')}
@@ -308,70 +375,3 @@
%endif
%def>
-
-
-<%def name="css()">
-
-
-
-%def>
-
-<%def name="js()">
-##
-##
-##
-##
-##
-
-
-
-
-
-
-
-%def>
-
-<%def name="breadcrumbs()">
-
- ${self.breadcrumbs_links()}
-
-%def>
\ No newline at end of file