comparison 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
comparison
equal deleted inserted replaced
2685:4a7a9f2c1dba 2686:269c6e0b54cc
164 except RepositoryError, e: 164 except RepositoryError, e:
165 h.flash(str(e), category='warning') 165 h.flash(str(e), category='warning')
166 redirect(h.url('files_home', repo_name=repo_name, 166 redirect(h.url('files_home', repo_name=repo_name,
167 revision='tip')) 167 revision='tip'))
168 168
169 if request.environ.get('HTTP_X_PARTIAL_XHR'):
170 return render('files/files_ypjax.html')
171
169 return render('files/files.html') 172 return render('files/files.html')
170 173
171 @LoginRequired() 174 @LoginRequired()
172 @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', 175 @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
173 'repository.admin') 176 'repository.admin')