summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-04-27 09:14:36 +0000
committerGo MAEDA <maeda@farend.jp>2018-04-27 09:14:36 +0000
commitb1781507617d9386c8545a28941fac163afd50fa (patch)
treeb3d2d5ef8fb427b99f50861bb092363fc78ee24f /app/views/common
parent087067678eef6655fac3a33e0fa695f69915acc2 (diff)
downloadredmine-b1781507617d9386c8545a28941fac163afd50fa.tar.gz
redmine-b1781507617d9386c8545a28941fac163afd50fa.zip
Show renames in diff preview (#28295).
Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@17313 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_diff.html.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/common/_diff.html.erb b/app/views/common/_diff.html.erb
index 0d30bedd2..35dfdea28 100644
--- a/app/views/common/_diff.html.erb
+++ b/app/views/common/_diff.html.erb
@@ -10,6 +10,9 @@
<thead>
<tr>
<th colspan="4" class="filename">
+ <% if table_file.previous_file_name %>
+ <span class="previous-filename"><%= table_file.previous_file_name %> →</span>
+ <% end %>
<%= table_file.file_name %>
</th>
</tr>
@@ -40,6 +43,9 @@
<thead>
<tr>
<th colspan="3" class="filename">
+ <% if table_file.previous_file_name %>
+ <span class="previous-filename"><%= table_file.previous_file_name %> →</span>
+ <% end %>
<%= table_file.file_name %>
</th>
</tr>