summaryrefslogtreecommitdiffstats
path: root/app/views/attachments/diff.html.erb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-24 05:07:42 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-24 05:07:42 +0000
commit3b6cd02f1eea14cc53c5d8848c582958bc218db4 (patch)
treee107a4fdfc692d6e82757dce9b5f931dcb39b7b6 /app/views/attachments/diff.html.erb
parentd6531caffe0c561307471df20ecbedf88431a178 (diff)
downloadredmine-3b6cd02f1eea14cc53c5d8848c582958bc218db4.tar.gz
redmine-3b6cd02f1eea14cc53c5d8848c582958bc218db4.zip
rename .rhtml to .html.erb of app/views/attachments/diff.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@6577 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments/diff.html.erb')
-rw-r--r--app/views/attachments/diff.html.erb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/attachments/diff.html.erb b/app/views/attachments/diff.html.erb
new file mode 100644
index 000000000..36e47217b
--- /dev/null
+++ b/app/views/attachments/diff.html.erb
@@ -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/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
+
+<% html_title h(@attachment.filename) %>
+
+<% content_for :header_tags do -%>
+ <%= stylesheet_link_tag "scm" -%>
+<% end -%>