Sha256: 818a1ee13fc19f791c7bddf09ee083d8f2d7bae675e87fce2dee03fed4cf8da2

Contents?: true

Size: 1.59 KB

Versions: 34

Compression:

Stored size: 1.59 KB

Contents

<% diff = Redmine::UnifiedDiff.new(
            diff, :type => diff_type,
            :max_lines => Setting.diff_max_lines_displayed.to_i,
            :style => diff_style) -%>

<% diff.each do |table_file| -%>
<div class="autoscroll">
<% if diff.diff_type == 'sbs' -%>
<table class="filecontent">
<thead>
<tr>
  <th colspan="4" class="filename">
    <%= table_file.file_name %>
  </th>
</tr>
</thead>
<tbody>
<% table_file.each_line do |spacing, line| -%>
<% if spacing -%>
<tr class="spacing">
  <th class="line-num">...</th><td></td><th class="line-num">...</th><td></td>
</tr>
<% end -%>
<tr>
  <th class="line-num"><%= line.nb_line_left %></th>
  <td class="line-code <%= line.type_diff_left %>">
    <pre><%= line.html_line_left.html_safe %></pre>
  </td>
  <th class="line-num"><%= line.nb_line_right %></th>
  <td class="line-code <%= line.type_diff_right %>">
    <pre><%= line.html_line_right.html_safe %></pre>
  </td>
</tr>
<% end -%>
</tbody>
</table>

<% else -%>
<table class="filecontent">
<thead>
  <tr>
    <th colspan="3" class="filename">
      <%= table_file.file_name %>
    </th>
  </tr>
</thead>
<tbody>
<% table_file.each_line do |spacing, line| %>
<% if spacing -%>
<tr class="spacing">
  <th class="line-num">...</th><th class="line-num">...</th><td></td>
</tr>
<% end -%>
<tr>
  <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 %>">
    <pre><%= line.html_line.html_safe %></pre>
  </td>
</tr>
<% end -%>
</tbody>
</table>
<% end -%>
</div>
<% end -%>

<%= l(:text_diff_truncated) if diff.truncated? %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.0.38 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.0.37 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.1.11 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.1.10 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.0.36 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.0.34 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.1.09 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.1.07 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.1.06 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.1.05 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.1.04 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.1.03 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.0.33 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.1.02 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.1.01 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.0.29 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.0.28 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.0.27 spec/redmine/app/views/common/_diff.html.erb
redmine_extensions-0.0.24 spec/redmine/app/views/common/_diff.html.erb