Browse Source

Adds the filename to the html title of attachment view.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2693 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/0.9.0
Jean-Philippe Lang 15 years ago
parent
commit
8887b6f3d3
2 changed files with 4 additions and 0 deletions
  1. 2
    0
      app/views/attachments/diff.rhtml
  2. 2
    0
      app/views/attachments/file.rhtml

+ 2
- 0
app/views/attachments/diff.rhtml View File

@@ -10,6 +10,8 @@
 
<%= 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 -%>

+ 2
- 0
app/views/attachments/file.rhtml View 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 -%>

Loading…
Cancel
Save