|
@ -436,7 +436,7 @@ module ApplicationHelper |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def icon(id, attributes = nil) |
|
|
def icon(id, attributes = nil) |
|
|
('<svg' + hash_to_html_attributes(attributes) + '><use xlink:href="/assets/icons.svg#bb-icon-' + id + '"></use></svg>').html_safe |
|
|
('<svg' + hash_to_html_attributes(attributes) + '><use xlink:href="' + cdn('/assets/icons.svg') + '#bb-icon-' + id + '"></use></svg>').html_safe |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def static_map(location, zoom, width, height) |
|
|
def static_map(location, zoom, width, height) |
|
@ -452,7 +452,11 @@ module ApplicationHelper |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
(Rails.application.config.action_controller.asset_host || '')+"/maps/#{local_file_name}" |
|
|
cdn("/maps/#{local_file_name}") |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def cdn(file) |
|
|
|
|
|
(Rails.application.config.action_controller.asset_host || '') + file |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
private |
|
|
private |
|
|