mirror of
https://github.com/redmine/redmine.git
synced 2026-07-01 00:18:56 +02:00
Includes favicon in assets pipeline (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22692 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1749,12 +1749,12 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def favicon
|
||||
"<link rel='shortcut icon' href='#{favicon_path}' />".html_safe
|
||||
favicon_link_tag(favicon_path, rel: "icon shortcut")
|
||||
end
|
||||
|
||||
# Returns the path to the favicon
|
||||
def favicon_path
|
||||
icon = (current_theme && current_theme.favicon?) ? current_theme.favicon_path : '/favicon.ico'
|
||||
icon = (current_theme && current_theme.favicon?) ? current_theme.favicon_path : 'favicon.ico'
|
||||
image_path(icon)
|
||||
end
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
Reference in New Issue
Block a user