diff rhodecode/controllers/files.py @ 2686:269c6e0b54cc beta

Reimplemented file-browser using partial-ajax - improves the speed of browsing of files for revision - url push state via html5 History - also cache the results of calls for even faster handling the content
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 04 Aug 2012 17:46:45 +0200
parents 2b6939a77052
children 2df8982bc40c
line wrap: on
line diff
--- a/rhodecode/controllers/files.py	Sat Aug 04 01:29:15 2012 +0200
+++ b/rhodecode/controllers/files.py	Sat Aug 04 17:46:45 2012 +0200
@@ -166,6 +166,9 @@
             redirect(h.url('files_home', repo_name=repo_name,
                            revision='tip'))
 
+        if request.environ.get('HTTP_X_PARTIAL_XHR'):
+            return render('files/files_ypjax.html')
+
         return render('files/files.html')
 
     @LoginRequired()