]> source.dussan.org Git - redmine.git/commitdiff
rename .rhtml to .html.erb of app/views/attachments/file.rhtml.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 24 Aug 2011 05:07:12 +0000 (05:07 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 24 Aug 2011 05:07:12 +0000 (05:07 +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@6576 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

diff --git a/app/views/attachments/file.html.erb b/app/views/attachments/file.html.erb
new file mode 100644 (file)
index 0000000..fde551f
--- /dev/null
@@ -0,0 +1,17 @@
+<h2><%=h @attachment.filename %></h2>
+
+<div class="attachments">
+<p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
+   <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
+<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
+   <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
+
+</div>
+&nbsp;
+<%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %>
+
+<% html_title h(@attachment.filename) %>
+
+<% content_for :header_tags do -%>
+    <%= stylesheet_link_tag "scm" -%>
+<% end -%>
diff --git a/app/views/attachments/file.rhtml b/app/views/attachments/file.rhtml
deleted file mode 100644 (file)
index fde551f..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<h2><%=h @attachment.filename %></h2>
-
-<div class="attachments">
-<p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
-   <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
-<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
-   <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
-
-</div>
-&nbsp;
-<%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %>
-
-<% html_title h(@attachment.filename) %>
-
-<% content_for :header_tags do -%>
-    <%= stylesheet_link_tag "scm" -%>
-<% end -%>