Defect #35153 » 0001-Added-touch-icon.png.patch
| app/helpers/application_helper.rb | ||
|---|---|---|
|
end
|
||
|
def favicon
|
||
|
"<link rel='shortcut icon' href='#{favicon_path}' />".html_safe
|
||
|
"<link rel='shortcut icon' sizes='180x180' href='#{favicon_path}' />".html_safe
|
||
|
end
|
||
|
# Returns the path to the favicon
|
||
| ... | ... | |
|
'<meta name="robots" content="noindex,follow,noarchive" />'.html_safe
|
||
|
end
|
||
|
def touchicon
|
||
|
"<link rel='apple-touch-icon' href='#{touchicon_path}' />".html_safe
|
||
|
end
|
||
|
def touchicon_path
|
||
|
touchicon = (current_theme && current_theme.touchicon?) ? current_theme.touchicon_path : '/touch-icon.png'
|
||
|
image_path(touchicon)
|
||
|
end
|
||
|
def touchicon_url
|
||
|
path = touchicon_path
|
||
|
base = url_for(:controller => 'welcome', :action => 'index', :only_path => false)
|
||
|
base.sub(%r{/+$}, '') + '/' + path.sub(%r{^/+}, '')
|
||
|
end
|
||
|
# Returns true if arg is expected in the API response
|
||
|
def include_in_api_response?(arg)
|
||
|
unless @included_in_api_response
|
||
| app/views/layouts/base.html.erb | ||
|---|---|---|
|
<meta name="keywords" content="issue,bug,tracker" />
|
||
|
<%= csrf_meta_tag %>
|
||
|
<%= favicon %>
|
||
|
<%= touchicon %>
|
||
|
<%= stylesheet_link_tag 'jquery/jquery-ui-1.12.1', 'tribute-5.1.3', 'application', 'responsive', :media => 'all' %>
|
||
|
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
||
|
<%= javascript_heads %>
|
||
| lib/redmine/themes.rb | ||
|---|---|---|
|
favicon.present?
|
||
|
end
|
||
|
def touchicons
|
||
|
@touchicon ||= assets("touchicon")
|
||
|
end
|
||
|
def touchicon
|
||
|
touchicons.first
|
||
|
end
|
||
|
def touchicon?
|
||
|
touchicon.present?
|
||
|
end
|
||
|
def stylesheet_path(source)
|
||
|
"/themes/#{dir}/stylesheets/#{source}"
|
||
|
end
|
||
| ... | ... | |
|
"/themes/#{dir}/favicon/#{favicon}"
|
||
|
end
|
||
|
def touchicon_path
|
||
|
"/themes/#{dir}/touchicon/#{touchicon}"
|
||
|
end
|
||
|
private
|
||
|
def assets(dir, ext=nil)
|
||