##// 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:

r1:854a839a default
r423:9930e2c8 default
Show More
files_detail.html
61 lines | 1.9 KiB | text/html | HtmlLexer
<%namespace name="file_base" file="/files/base.html"/>
<div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
<div class="left-label">
${_('Commit Description')}:
</div>
<div class="commit right-content truncate-wrap">${h.urlify_commit_message(h.chop_at_smart(c.commit.message, '\n', suffix_if_chopped='...'), c.repo_name)}</div>
</div>
<div class="fieldset collapsable-content" data-toggle="summary-details">
<div class="left-label">
${_('Commit Description')}:
</div>
<div class="commit right-content">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div>
</div>
<div class="fieldset " data-toggle="summary-details">
<div class="left-label">
${_('References')}:
</div>
<div class="right-content">
<div class="tags tags-main">
<code>
<a href="${h.url('changeset_home',repo_name=c.repo_name,revision=c.commit.raw_id)}">${h.show_id(c.commit)}</a>
</code>
${file_base.refs(c.commit)}
</div>
</div>
</div>
<div class="fieldset collapsable-content" data-toggle="summary-details">
<div class="left-label">
${_('File last commit')}:
</div>
<div class="right-content">
<div class="tags">
<code>
<a href="${h.url('changeset_home',repo_name=c.repo_name,revision=c.file_last_commit.raw_id)}">${h.show_id(c.file_last_commit)}</a>
</code>
${file_base.refs(c.file_last_commit)}
</div>
</div>
</div>
<div id="node_history" class="file_diff_buttons collapsable-content" data-toggle="summary-details">
${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')}
${h.hidden('diff1')}
${h.hidden('diff2',c.file_last_commit.raw_id)}
${h.submit('diff',_('Diff to Commit'),class_="btn disabled",disabled="true")}
${h.submit('show_rev',_('Show at Commit'),class_="btn disabled",disabled="true")}
${h.hidden('annotate', c.annotate)}
${h.end_form()}
</div>
<script>
collapsableContent();
</script>