mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-05 15:37:39 -05:00
Fix icon images
This commit is contained in:
@@ -92,8 +92,11 @@ module IconsHelper
|
||||
end
|
||||
|
||||
def plant_part_icon(name)
|
||||
image_icon "plant_parts/#{name}" if File.exist? Rails.root.join('app', 'assets', 'images', 'icons', "{name}.svg")
|
||||
planting_icon
|
||||
if File.exist? Rails.root.join('app', 'assets', 'images', 'icons', 'plant_parts', "#{name}.svg")
|
||||
image_tag "icons/plant_parts/#{name}.svg", class: 'img img-icon', 'aria-hidden' => "true"
|
||||
else
|
||||
planting_icon
|
||||
end
|
||||
end
|
||||
|
||||
def crop_icon(crop)
|
||||
|
||||
Reference in New Issue
Block a user