You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2017/03/24 22:25:22 UTC
allura git commit: [#7814] Showing diffs for renamed files in browse
commits
Repository: allura
Updated Branches:
refs/heads/master 5ad0b0ef8 -> 528c46c2b
[#7814] Showing diffs for renamed files in browse commits
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/528c46c2
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/528c46c2
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/528c46c2
Branch: refs/heads/master
Commit: 528c46c2b0f1c4f0d3a964c4e6947f7f9f28f736
Parents: 5ad0b0e
Author: huzaifafaruqui <hu...@outlook.com>
Authored: Sat Mar 25 00:13:54 2017 +0530
Committer: huzaifafaruqui <hu...@outlook.com>
Committed: Sat Mar 25 00:13:54 2017 +0530
----------------------------------------------------------------------
Allura/allura/templates/repo/commit_basic.html | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/528c46c2/Allura/allura/templates/repo/commit_basic.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/repo/commit_basic.html b/Allura/allura/templates/repo/commit_basic.html
index e4ec126..c023822 100644
--- a/Allura/allura/templates/repo/commit_basic.html
+++ b/Allura/allura/templates/repo/commit_basic.html
@@ -48,12 +48,21 @@
</tr>
{% endfor %}{% for diff in commit.diffs.renamed %}
<tr>
- <td>rename</td>
+ {% if diff.ratio < 1 %}
+ <td>rename (with changes)</td>
+ {% else %}
+ <td>rename</td>
+ {% endif %}
<td>
<a href="{{prev[0].url()}}tree/{{h.really_unicode(diff.old)}}">{{h.really_unicode(diff.old)}}</a>
<br/>to<br/>
<a href="{{commit.url()}}tree/{{h.really_unicode(diff.new)}}">{{h.really_unicode(diff.new)}}</a>
</td>
+ <td>
+ {% if diff.ratio < 1 %}
+ <a href="{{commit.url()}}tree/{{h.really_unicode(diff.new)}}?diff={{prev[0]._id}}?prev-file={{h.really_unicode(diff.old)}}">(diff)</a>
+ {% endif %}
+ </td>
</tr>
{% endfor %}
</tbody>