OSDN Git Service

Adds the filename to the html title of attachment view.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 25 Apr 2009 09:35:14 +0000 (09:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 25 Apr 2009 09:35:14 +0000 (09:35 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2693 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/attachments/diff.rhtml
app/views/attachments/file.rhtml

index 7b64dca..36db0af 100644 (file)
@@ -10,6 +10,8 @@
 &nbsp;
 <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
 
+<% html_title @attachment.filename %>
+
 <% content_for :header_tags do -%>
     <%= stylesheet_link_tag "scm" -%>
 <% end -%>
index 468c6b6..c7e7a75 100644 (file)
@@ -10,6 +10,8 @@
 &nbsp;
 <%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %>
 
+<% html_title @attachment.filename %>
+
 <% content_for :header_tags do -%>
     <%= stylesheet_link_tag "scm" -%>
 <% end -%>