Add a favicon link with support for suburi. #3301

Contributed by Yuki Kita and Christian Boenning

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3894 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis 2010-07-29 14:58:33 +00:00
parent 2a85a1cebf
commit 5f20bc240e
2 changed files with 5 additions and 0 deletions

View File

@ -783,6 +783,10 @@ module ApplicationHelper
end
end
def favicon
"<link rel='shortcut icon' href='#{Redmine::Utils.relative_url_root}/favicon.ico' />"
end
private
def wiki_helper

View File

@ -5,6 +5,7 @@
<title><%=h html_title %></title>
<meta name="description" content="<%= Redmine::Info.app_name %>" />
<meta name="keywords" content="issue,bug,tracker" />
<%= favicon %>
<%= stylesheet_link_tag 'application', :media => 'all' %>
<%= javascript_include_tag :defaults %>
<%= heads_for_wiki_formatter %>