updated to new favicons
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -7,6 +7,9 @@ class StatusEntity < Grape::Entity
|
||||||
expose :details_path
|
expose :details_path
|
||||||
|
|
||||||
expose :favicon do |status|
|
expose :favicon do |status|
|
||||||
ActionController::Base.helpers.image_path(File.join('ci_favicons', "#{status.favicon}.ico"))
|
dir = 'ci_favicons'
|
||||||
|
dir = File.join(dir, 'dev') if Rails.env.development?
|
||||||
|
|
||||||
|
ActionController::Base.helpers.image_path(File.join(dir, "#{status.favicon}.ico"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|