##// END OF EJS Templates
diffs: fixed outdated files in pull-requests re-using the filediff raw_id for anchor generation....
diffs: fixed outdated files in pull-requests re-using the filediff raw_id for anchor generation. In some cases when there are no longer any files this caused error since filediff wasn't present. In addition this generated wrong ids since it used a last-defined attribute on a for loop. Fixes #5567

File last commit:

r3706:9aa2b595 new-ui
r3830:5bbd362b stable
Show More
files_pjax.mako
34 lines | 872 B | application/x-mako | MakoHtmlLexer
<%def name="title(*args)">
${_('{} Files').format(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>
<div class="summary-detail">
<div class="summary-detail-header">
</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='files_tree_header.mako'/>
% else:
<%include file='files_source_header.mako'/>
% endif
</div> <!--end summary-detail-->
% if c.file.is_dir():
<%include file='files_browser.mako'/>
% else:
<%include file='files_source.mako'/>
% endif
</div>