Changeset - 9f754ef1c18f
[Not reviewed]
default
0 1 0
Mads Kiilerich - 10 years ago 2016-01-05 16:55:52
madski@unity3d.com
diff: make diff_block_simple (and thus pull request diffs) collapsable as changeset diffs are

I am not sure this is useful when the whole diff is sent to the client side
anyway ... but for now, let's be consistent.
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/changeset/diff_block.html
Show inline comments
 
@@ -66,6 +66,10 @@
 
</%def>
 

	
 
<%def name="diff_block_simple(files, changes)">
 
<div class="diff-collapse">
 
    <span target="${'diff-container-%s' % (id(changes))}" class="diff-collapse-button">&uarr; ${_('Collapse Diff')} &uarr;</span>
 
</div>
 
<div class="diff-container" id="${'diff-container-%s' % (id(changes))}">
 
  %for fid, ch, f, stat in files:
 
    <%
 
    op, filenode_path, diff = changes[fid]
 
@@ -126,6 +130,7 @@
 
        </div>
 
    </div>
 
  %endfor
 
</div>
 
</%def>
 

	
 
<%def name="diff_block_js()">
0 comments (0 inline, 0 general)