Mercurial > hg > soundsoftware-site
view app/views/common/.svn/text-base/_diff.rhtml.svn-base @ 779:06a9d1cf5e15 feature_14
Addresses Bug #331 - using a remote form to submit the "filters".
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 17 Nov 2011 23:34:18 +0000 |
parents | cbce1fd3b1b7 |
children |
line wrap: on
line source
<% diff = Redmine::UnifiedDiff.new(diff, :type => diff_type, :max_lines => Setting.diff_max_lines_displayed.to_i) -%> <% diff.each do |table_file| -%> <div class="autoscroll"> <% if diff.diff_type == 'sbs' -%> <table class="filecontent"> <thead> <tr><th colspan="4" class="filename"><%=to_utf8 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><%=to_utf8 line.html_line_left %></pre> </td> <th class="line-num"><%= line.nb_line_right %></th> <td class="line-code <%= line.type_diff_right %>"> <pre><%=to_utf8 line.html_line_right %></pre> </td> </tr> <% end -%> </tbody> </table> <% else -%> <table class="filecontent"> <thead> <tr><th colspan="3" class="filename"><%=to_utf8 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><%=to_utf8 line.html_line %></pre> </td> </tr> <% end -%> </tbody> </table> <% end -%> </div> <% end -%> <%= l(:text_diff_truncated) if diff.truncated? %>