From 8887b6f3d3359c5e20ad4691dd6cfaddc4e9a4a5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 25 Apr 2009 09:35:14 +0000 Subject: [PATCH] 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 --- app/views/attachments/diff.rhtml | 2 ++ app/views/attachments/file.rhtml | 2 ++ 2 files changed, 4 insertions(+) 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 @@   <%= 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 @@   <%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %> +<% html_title @attachment.filename %> + <% content_for :header_tags do -%> <%= stylesheet_link_tag "scm" -%> <% end -%> -- 2.39.5