# HG changeset patch # User Marcin Kuzminski # Date 2019-07-02 17:49:41 # Node ID 0fee1faa094c2edcd573b398d48303cb29963c64 # Parent 0a346c4eecabb33650d9e0a284317d125d6726de search: pre-select menu entry when doing specialized searches for repository. diff --git a/rhodecode/templates/search/search.mako b/rhodecode/templates/search/search.mako --- a/rhodecode/templates/search/search.mako +++ b/rhodecode/templates/search/search.mako @@ -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