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

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

diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb
new file mode 100644 (file)
index 0000000..4f4e2d1
--- /dev/null
@@ -0,0 +1,18 @@
+<div class="attachments">
+<% for attachment in attachments %>
+<p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
+<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
+  <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
+  <% if options[:deletable] %>
+    <%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment},
+                                         :confirm => l(:text_are_you_sure),
+                                         :method => :post,
+                                         :class => 'delete',
+                                         :title => l(:button_delete) %>
+  <% end %>
+  <% if options[:author] %>
+    <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
+  <% end %>
+  </p>
+<% end %>
+</div>
diff --git a/app/views/attachments/_links.rhtml b/app/views/attachments/_links.rhtml
deleted file mode 100644 (file)
index 4f4e2d1..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<div class="attachments">
-<% for attachment in attachments %>
-<p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
-<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
-  <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
-  <% if options[:deletable] %>
-    <%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment},
-                                         :confirm => l(:text_are_you_sure),
-                                         :method => :post,
-                                         :class => 'delete',
-                                         :title => l(:button_delete) %>
-  <% end %>
-  <% if options[:author] %>
-    <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
-  <% end %>
-  </p>
-<% end %>
-</div>