From: Toshi MARUYAMA Date: Wed, 24 Aug 2011 00:05:25 +0000 (+0000) Subject: rename .rhtml to .html.erb of app/views/common/_file.rhtml. X-Git-Tag: 1.3.0~1415 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b68048556e8dbe4fe04f6833f7b7e5bccdcd7d37;p=redmine.git rename .rhtml to .html.erb of app/views/common/_file.rhtml. :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@6546 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/common/_file.html.erb b/app/views/common/_file.html.erb new file mode 100644 index 000000000..13ad8bbda --- /dev/null +++ b/app/views/common/_file.html.erb @@ -0,0 +1,11 @@ +
+ + +<% line_num = 1 %> +<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %> + +<% line_num += 1 %> +<% end %> + +
<%= line_num %>
<%= line %>
+
diff --git a/app/views/common/_file.rhtml b/app/views/common/_file.rhtml deleted file mode 100644 index 13ad8bbda..000000000 --- a/app/views/common/_file.rhtml +++ /dev/null @@ -1,11 +0,0 @@ -
- - -<% line_num = 1 %> -<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %> - -<% line_num += 1 %> -<% end %> - -
<%= line_num %>
<%= line %>
-