Mercurial > hg > soundsoftware-site
diff .svn/pristine/0c/0c3d44b905a542240e7c616a63f74580e8cbbb9d.svn-base @ 926:b73a59a6acbd luisf
Merge from cannam_integration
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 11 May 2012 16:10:11 +0100 |
parents | cbb26bc654de |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.svn/pristine/0c/0c3d44b905a542240e7c616a63f74580e8cbbb9d.svn-base Fri May 11 16:10:11 2012 +0100 @@ -0,0 +1,67 @@ +<% 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"> + <%= h(Redmine::CodesetUtil.to_utf8_by_setting(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><%= Redmine::CodesetUtil.to_utf8_by_setting(line.html_line_left) %></pre> + </td> + <th class="line-num"><%= line.nb_line_right %></th> + <td class="line-code <%= line.type_diff_right %>"> + <pre><%= Redmine::CodesetUtil.to_utf8_by_setting(line.html_line_right) %></pre> + </td> +</tr> +<% end -%> +</tbody> +</table> + +<% else -%> +<table class="filecontent"> +<thead> + <tr> + <th colspan="3" class="filename"> + <%= h(Redmine::CodesetUtil.to_utf8_by_setting(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><%= Redmine::CodesetUtil.to_utf8_by_setting(line.html_line) %></pre> + </td> +</tr> +<% end -%> +</tbody> +</table> +<% end -%> +</div> +<% end -%> + +<%= l(:text_diff_truncated) if diff.truncated? %>