summaryrefslogtreecommitdiffstats
path: root/app/views/attachments
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-04-25 09:35:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-04-25 09:35:14 +0000
commit8887b6f3d3359c5e20ad4691dd6cfaddc4e9a4a5 (patch)
tree866eeb9b22e0d9888f2547a5c065f57b0aaf86a8 /app/views/attachments
parent15a14e55cdb9b8c2633786fa262382b6e1f7ea9f (diff)
downloadredmine-8887b6f3d3359c5e20ad4691dd6cfaddc4e9a4a5.tar.gz
redmine-8887b6f3d3359c5e20ad4691dd6cfaddc4e9a4a5.zip
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
Diffstat (limited to 'app/views/attachments')
-rw-r--r--app/views/attachments/diff.rhtml2
-rw-r--r--app/views/attachments/file.rhtml2
2 files changed, 4 insertions, 0 deletions
diff --git a/app/views/attachments/diff.rhtml b/app/views/attachments/diff.rhtml
index 7b64dca17..36db0af52 100644
--- a/app/views/attachments/diff.rhtml
+++ b/app/views/attachments/diff.rhtml
@@ -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 -%>
diff --git a/app/views/attachments/file.rhtml b/app/views/attachments/file.rhtml
index 468c6b666..c7e7a7573 100644
--- a/app/views/attachments/file.rhtml
+++ b/app/views/attachments/file.rhtml
@@ -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 -%>