##// END OF EJS Templates
file-browser: refactor how we load metadata for file trees....
file-browser: refactor how we load metadata for file trees. Before we used to use JSON data to map the nodes to json and fill in metadata. Now we use rendered parts of html. This is nicer for caching as it would allow us to replace the view with cached tree and then after ajax load replace it again with cached with metadata. On the next request we'll get the cached with metadata and thus we can skip entirely second ajax call for metadata. This is part of #4083

File last commit:

r422:a5bc4f35 default
r423:9930e2c8 default
Show More
files_pjax.html
51 lines | 1.6 KiB | text/html | HtmlLexer
<%def name="title(*args)">
${_('%s Files') % c.repo_name}
%if hasattr(c,'file'):
&middot; ${h.safe_unicode(c.file.path) or '\\'}
%endif
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<div id="pjax-content" data-title="${self.title()}">
<div class="summary-detail">
<div class="summary-detail-header">
<div class="breadcrumbs files_location">
<h4>
${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path)}
%if c.annotate:
- ${_('annotation')}
%endif
</h4>
</div>
<div class="btn-collapse" data-toggle="summary-details">
${_('Show More')}
</div>
</div><!--end summary-detail-header-->
% if c.file.is_submodule():
<span class="submodule-dir">Submodule ${h.escape(c.file.name)}</span>
% elif c.file.is_dir():
<%include file='file_tree_detail.html'/>
% else:
<%include file='files_detail.html'/>
% endif
</div> <!--end summary-detail-->
% if c.file.is_dir():
<div id="commit-stats" class="sidebar-right">
<%include file='file_tree_author_box.html'/>
</div>
<%include file='files_browser.html'/>
% else:
<div id="file_authors" class="sidebar-right">
<%include file='file_authors_box.html'/>
</div>
<%include file='files_source.html'/>
% endif
</div>