diff rhodecode/config/routing.py @ 1608:0069657aaf42 beta

lazy load of branches and tags menu - to reduce load on repositories with large amount of branches and tags. - reduce load times of pages significantly on large repos
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 29 Oct 2011 00:57:09 +0200
parents 27be8f94c207
children d2de0c2f02cd
line wrap: on
line diff
--- a/rhodecode/config/routing.py	Fri Oct 28 02:40:22 2011 +0200
+++ b/rhodecode/config/routing.py	Sat Oct 29 00:57:09 2011 +0200
@@ -62,6 +62,8 @@
     rmap.connect('home', '/', controller='home', action='index')
     rmap.connect('repo_switcher', '/repos', controller='home',
                  action='repo_switcher')
+    rmap.connect('branch_tag_switcher', '/branches-tags/{repo_name:.*}', 
+                 controller='home',action='branch_tag_switcher')    
     rmap.connect('bugtracker',
                  "http://bitbucket.org/marcinkuzminski/rhodecode/issues",
                  _static=True)