Browse Source

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
tags/1.1.0
Eric Davis 14 years ago
parent
commit
5f20bc240e
2 changed files with 5 additions and 0 deletions
  1. 4
    0
      app/helpers/application_helper.rb
  2. 1
    0
      app/views/layouts/base.rhtml

+ 4
- 0
app/helpers/application_helper.rb 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

+ 1
- 0
app/views/layouts/base.rhtml 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 %>

Loading…
Cancel
Save