files_pjax.mako
49 lines
| 1.4 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | <%def name="title(*args)"> | |||
r3648 | ${_('{} Files').format(c.repo_name)} | |||
r1282 | %if hasattr(c,'file'): | |||
r3648 | · ${(h.safe_unicode(c.file.path) or '\\')} | |||
r1282 | %endif | |||
%if c.rhodecode_name: | ||||
· ${h.branding(c.rhodecode_name)} | ||||
%endif | ||||
</%def> | ||||
<div id="pjax-content" data-title="${self.title()}"> | ||||
r3648 | <script> | |||
// set the pageSource variable | ||||
var fileSourcePage = ${c.file_source_page}; | ||||
</script> | ||||
r1282 | <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(): | ||||
r3648 | <%include file='files_tree_header.mako'/> | |||
r1282 | % else: | |||
r3648 | <%include file='files_source_header.mako'/> | |||
r1282 | % endif | |||
</div> <!--end summary-detail--> | ||||
r3648 | ||||
r1282 | % if c.file.is_dir(): | |||
<%include file='files_browser.mako'/> | ||||
% else: | ||||
<%include file='files_source.mako'/> | ||||
% endif | ||||
r3648 | </div> | |||