]> source.dussan.org Git - redmine.git/commitdiff
rename .rhtml to .html.erb of app/views/common/_diff.rhtml.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 24 Aug 2011 00:06:14 +0000 (00:06 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 24 Aug 2011 00:06:14 +0000 (00:06 +0000)
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6548 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/common/_diff.html.erb [new file with mode: 0644]
app/views/common/_diff.rhtml [deleted file]

diff --git a/app/views/common/_diff.html.erb b/app/views/common/_diff.html.erb
new file mode 100644 (file)
index 0000000..9967a68
--- /dev/null
@@ -0,0 +1,57 @@
+<% 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(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"><%=h(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? %>
diff --git a/app/views/common/_diff.rhtml b/app/views/common/_diff.rhtml
deleted file mode 100644 (file)
index 9967a68..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<% 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(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"><%=h(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? %>