1
0
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:
Marius Balteanu 2024-02-07 20:41:23 +00:00
parent 2f79441332
commit a0035ba52a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB