# HG changeset patch # User Daniel Dourvaris # Date 2016-10-26 10:13:42 # Node ID 95e7a2563cb112be73af6df7794203bc562d8a2a # Parent 739142a58f71509e327130cc116073f6b678ee6b diffs: add commit id argument and use id of filediff for identifying collapse blocks and links, this allows render_diffset to be used multiple times on a page without conflicting with each other diff --git a/rhodecode/templates/codeblocks/diffs.html b/rhodecode/templates/codeblocks/diffs.html --- a/rhodecode/templates/codeblocks/diffs.html +++ b/rhodecode/templates/codeblocks/diffs.html @@ -23,7 +23,7 @@ new_args.update(kw) return h.url('', **new_args) %> -<%def name="render_diffset(diffset, +<%def name="render_diffset(diffset, commit_id=None, # collapse all file diff entries when there are more than this amount of files in the diff collapse_when_files_over=20, @@ -122,12 +122,12 @@ collapse_all = len(diffset.files) > coll lines_changed = filediff['patch']['stats']['added'] + filediff['patch']['stats']['deleted'] over_lines_changed_limit = lines_changed > lines_changed_limit %> - +
-