diff --git a/rhodecode/controllers/home.py b/rhodecode/controllers/home.py --- a/rhodecode/controllers/home.py +++ b/rhodecode/controllers/home.py @@ -58,3 +58,12 @@ class HomeController(BaseController): return render('/repo_switcher_list.html') else: return HTTPBadRequest() + + def branch_tag_switcher(self, repo_name): + c.rhodecode_db_repo = Repository.get_by_repo_name(c.repo_name) + c.rhodecode_repo = c.rhodecode_db_repo.scm_instance + return render('/switch_to_list.html') + if request.is_xhr: + return render('/switch_to_list.html') + else: + return HTTPBadRequest()