@@ -144,9 +144,6 @@
if selected == current:
return h.literal('class="current"')
%>
## we render this menu only not for those pages
%if current not in ['home','admin', 'search', 'journal']:
##REGULAR MENU
<ul id="quick">
<!-- repo switcher -->
<li>
@@ -162,7 +159,9 @@
</li>
</ul>
<li ${is_current('summary')}>
<a class="menu_link" title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
<span class="icon">
@@ -179,7 +178,6 @@
<span>${_('Changelog')}</span>
</a>
<li ${is_current('switch_to')}>
<a class="menu_link" id="branch_tag_switcher" title="${_('Switch to')}" href="#">
@@ -199,7 +197,6 @@
<span>${_('Files')}</span>
<li ${is_current('options')}>
<a class="menu_link" title="${_('Options')}" href="#">
@@ -255,7 +252,6 @@
% endif
<a class="menu_link" title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}">
<span class="icon_short">
@@ -281,28 +277,7 @@
${usermenu()}
<script type="text/javascript">
YUE.on('repo_switcher','mouseover',function(){
function qfilter(){
var nodes = YUQ('ul#repo_switcher_list li a.repo_name');
var target = 'q_filter_rs';
var func = function(node){
return node.parentNode;
}
q_filter(target,nodes,func);
var loaded = YUD.hasClass('repo_switcher','loaded');
if(!loaded){
YUD.addClass('repo_switcher','loaded');
ypjax("${h.url('repo_switcher')}",'repo_switcher_list',
function(o){qfilter();},
function(o){YUD.removeClass('repo_switcher','loaded');}
,null);
return false;
});
YUE.on('branch_tag_switcher','mouseover',function(){
var loaded = YUD.hasClass('branch_tag_switcher','loaded');
@@ -317,7 +292,6 @@
</script>
%else:
##ROOT MENU
<li ${is_current('home')}>
<a class="menu_link" title="${_('Home')}" href="${h.url('home')}">
@@ -353,7 +327,6 @@
<span>${_('Search')}</span>
%if h.HasPermissionAll('hg.admin')('access admin main page'):
<li ${is_current('admin')}>
<a class="menu_link" title="${_('Admin')}" href="${h.url('admin_home')}">
@@ -366,6 +339,26 @@
%endif
</%def>
Status change: