Mercurial > kallithea
view kallithea/templates/files/file_diff.html @ 6193:dc4cb1d4e084
diff: rework data structure used by diff_block.diff_block (used for changeset diffs)
Make it a pure reusable function that also can replace diff_block_simple.
Improve code clarity by using Python tuples for tuples.
fid and url_fid are just shuffled around - not cleaned up for now.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 06 Sep 2016 00:51:18 +0200 |
parents | 3a3ec35466e7 |
children | 80a15e10857a |
line wrap: on
line source
<%inherit file="/base/base.html"/> <%block name="title"> ${_('%s File Diff') % c.repo_name} </%block> <%def name="breadcrumbs_links()"> ${_('File diff')} ${h.show_id(c.changeset_1)} → ${h.show_id(c.changeset_2)} </%def> <%block name="header_menu"> ${self.menu('repositories')} </%block> <%def name="main()"> ${self.repo_context_bar('changelog')} <div class="box"> <!-- box / title --> <div class="title"> ${self.breadcrumbs()} </div> <div> ## diff block <%namespace name="diff_block" file="/changeset/diff_block.html"/> ${diff_block.diff_block_js()} ${diff_block.diff_block(c.repo_name, 'rev', c.a_rev, c.a_rev, c.repo_name, 'rev', c.cs_rev, c.cs_rev, c.file_diff_data)} </div> </div> </%def>