mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00: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:
parent
2f79441332
commit
a0035ba52a
@ -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 |
Loading…
x
Reference in New Issue
Block a user