changeset 104:4cea52709743

fixed file browser breadcrumbs with revision
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 25 Apr 2010 22:29:43 +0200
parents 665b344927f4
children 3ac4350b7848
files pylons_app/lib/helpers.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pylons_app/lib/helpers.py	Sun Apr 25 22:16:05 2010 +0200
+++ b/pylons_app/lib/helpers.py	Sun Apr 25 22:29:43 2010 +0200
@@ -72,12 +72,12 @@
 class _FilesBreadCrumbs(object):
     
     def __call__(self, repo_name, rev, paths):
-        url_l = [link_to(repo_name, url('files_home', repo_name=repo_name, f_path=''))]
+        url_l = [link_to(repo_name, url('files_home', repo_name=repo_name, revision=rev, f_path=''))]
         paths_l = paths.split('/')
         
         for cnt, p in enumerate(paths_l, 1):
             if p != '':
-                url_l.append(link_to(p, url('files_home', repo_name=repo_name, f_path='/'.join(paths_l[:cnt]))))
+                url_l.append(link_to(p, url('files_home', repo_name=repo_name, revision=rev, f_path='/'.join(paths_l[:cnt]))))
 
         return literal(' / '.join(url_l))