mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
use image path generator for map icons
This commit is contained in:
@@ -123,13 +123,13 @@ module Api
|
||||
# Map svg icons.
|
||||
def icon
|
||||
icons = {
|
||||
hub: "/assets/map_005-hub.svg",
|
||||
hub_profile: "/assets/map_006-hub-profile.svg",
|
||||
producer_hub: "/assets/map_005-hub.svg",
|
||||
producer_shop: "/assets/map_003-producer-shop.svg",
|
||||
producer: "/assets/map_001-producer-only.svg",
|
||||
hub: "map_005-hub.svg",
|
||||
hub_profile: "map_006-hub-profile.svg",
|
||||
producer_hub: "map_005-hub.svg",
|
||||
producer_shop: "map_003-producer-shop.svg",
|
||||
producer: "map_001-producer-only.svg",
|
||||
}
|
||||
icons[enterprise.category]
|
||||
ImagePathGenerator.call(icons[enterprise.category])
|
||||
end
|
||||
|
||||
# Choose regular icon font for enterprises.
|
||||
|
||||
Reference in New Issue
Block a user