# HG changeset patch # User Marcin Kuzminski # Date 2016-07-11 17:58:16 # Node ID a5bc4f35d66a20ff34b5d1822648cae0d85fe985 # Parent 381afb6c4bd58ac36cc4757d2fcd2ea2dedb5f0b file-browser: fixes #4083 diff --git a/rhodecode/controllers/files.py b/rhodecode/controllers/files.py --- a/rhodecode/controllers/files.py +++ b/rhodecode/controllers/files.py @@ -140,7 +140,7 @@ class FilesController(BaseRepoController def _cached_tree(): log.debug('Generating cached file tree for %s, %s, %s', repo_name, commit_id, f_path) - return render('files/files_browser.html') + return render('files/files_browser_tree.html') cache_manager = self.__get_tree_cache_manager( repo_name, caches.FILE_TREE) diff --git a/rhodecode/templates/files/files_browser.html b/rhodecode/templates/files/files_browser.html --- a/rhodecode/templates/files/files_browser.html +++ b/rhodecode/templates/files/files_browser.html @@ -41,67 +41,9 @@ - -
- - - - - - - - - - + ## file tree is computed from caches, and filled in + ${c.file_tree} - - %if c.file.parent: - - - - - - - - %endif - %for cnt,node in enumerate(c.file): - - - %if node.is_file(): - - - - - %else: - - - - - %endif - - %endfor - - -
${_('Name')}${_('Size')}${_('Modified')}${_('Last Commit')}${_('Author')}
- - .. - -
- %if node.is_submodule(): - - ${h.link_to_if( - node.url.startswith('http://') or node.url.startswith('https://'), - node.name,node.url)} - - %else: - - ${node.name} - - %endif - - ${_('Loading...')} -
-