search: pre-select menu entry when doing specialized searches for repository.
This commit is contained in:
parent
c2ecec468c
commit
bf71a49ad3
1 changed files with 2 additions and 1 deletions
|
|
@ -37,7 +37,8 @@
|
|||
|
||||
<%def name="menu_bar_subnav()">
|
||||
%if c.repo_name:
|
||||
${self.repo_menu(active='summary')}
|
||||
<% active_entry = {'content':'files', 'path':'files', 'commit':'commits'}.get(c.search_type, 'summary')%>
|
||||
${self.repo_menu(active=active_entry)}
|
||||
%elif c.repo_group_name:
|
||||
${self.repo_group_menu(active='home')}
|
||||
%endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue