kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.6 KiB
58 lines
1.6 KiB
16 years ago
|
<% diff = Redmine::UnifiedDiff.new(diff, :type => diff_type, :max_lines => Setting.diff_max_lines_displayed.to_i) -%>
|
||
14 years ago
|
|
||
16 years ago
|
<% diff.each do |table_file| -%>
|
||
17 years ago
|
<div class="autoscroll">
|
||
14 years ago
|
<% if diff.diff_type == 'sbs' -%>
|
||
15 years ago
|
<table class="filecontent">
|
||
17 years ago
|
<thead>
|
||
13 years ago
|
<tr><th colspan="4" class="filename"><%= h(to_utf8_for_attachments(table_file.file_name)) %></th></tr>
|
||
17 years ago
|
</thead>
|
||
|
<tbody>
|
||
14 years ago
|
<% table_file.each_line do |spacing, line| -%>
|
||
|
<% if spacing -%>
|
||
17 years ago
|
<tr class="spacing">
|
||
14 years ago
|
<th class="line-num">...</th><td></td><th class="line-num">...</th><td></td>
|
||
|
</tr>
|
||
17 years ago
|
<% end -%>
|
||
|
<tr>
|
||
14 years ago
|
<th class="line-num"><%= line.nb_line_left %></th>
|
||
|
<td class="line-code <%= line.type_diff_left %>">
|
||
14 years ago
|
<pre><%=to_utf8_for_attachments line.html_line_left %></pre>
|
||
17 years ago
|
</td>
|
||
14 years ago
|
<th class="line-num"><%= line.nb_line_right %></th>
|
||
|
<td class="line-code <%= line.type_diff_right %>">
|
||
14 years ago
|
<pre><%=to_utf8_for_attachments line.html_line_right %></pre>
|
||
17 years ago
|
</td>
|
||
|
</tr>
|
||
|
<% end -%>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<% else -%>
|
||
14 years ago
|
<table class="filecontent">
|
||
17 years ago
|
<thead>
|
||
13 years ago
|
<tr><th colspan="3" class="filename"><%= h(to_utf8_for_attachments(table_file.file_name)) %></th></tr>
|
||
17 years ago
|
</thead>
|
||
|
<tbody>
|
||
14 years ago
|
<% table_file.each_line do |spacing, line| %>
|
||
|
<% if spacing -%>
|
||
17 years ago
|
<tr class="spacing">
|
||
14 years ago
|
<th class="line-num">...</th><th class="line-num">...</th><td></td>
|
||
17 years ago
|
</tr>
|
||
17 years ago
|
<% end -%>
|
||
|
<tr>
|
||
14 years ago
|
<th class="line-num"><%= line.nb_line_left %></th>
|
||
|
<th class="line-num"><%= line.nb_line_right %></th>
|
||
|
<td class="line-code <%= line.type_diff %>">
|
||
14 years ago
|
<pre><%=to_utf8_for_attachments line.html_line %></pre>
|
||
17 years ago
|
</td>
|
||
|
</tr>
|
||
|
<% end -%>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<% end -%>
|
||
|
</div>
|
||
|
<% end -%>
|
||
16 years ago
|
|
||
|
<%= l(:text_diff_truncated) if diff.truncated? %>
|