[PATCH 1 of 3 v2] pull-request: collapse diff by default
Jan Heylen
heyleke at gmail.com
Thu Dec 24 20:32:34 UTC 2015
# HG changeset patch
# User Jan Heylen <jan.heylen at alcatel-lucent.com>
# Date 1449129566 -3600
# Thu Dec 03 08:59:26 2015 +0100
# Node ID ca3898b3df490890c992da0ab1cc79d57ca7226b
# Parent 3bd79591517080ccf795e559650db057112b7219
pull-request: collapse diff by default
to motivate users to do reviews on a commit level
diff -r 3bd795915170 -r ca3898b3df49 kallithea/templates/pullrequests/pullrequest_show.html
--- a/kallithea/templates/pullrequests/pullrequest_show.html Sun Nov 29 16:43:42 2015 +0100
+++ b/kallithea/templates/pullrequests/pullrequest_show.html Thu Dec 03 08:59:26 2015 +0100
@@ -357,7 +357,7 @@
<%namespace name="diff_block" file="/changeset/diff_block.html"/>
${diff_block.diff_block_js()}
%for fid, change, f, stat in c.files:
- ${diff_block.diff_block_simple([c.changes[fid]])}
+ ${diff_block.diff_block_simple([c.changes[fid]],hidden=True)}
%endfor
% if c.limited_diff:
<h4>${_('Changeset was too big and was cut off...')} <a href="${h.url.current(fulldiff=1, **request.GET.mixed())}">${_('Show full diff anyway')}</a></h4>
More information about the kallithea-general
mailing list