diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb index 4c366b314..511e2b352 100644 --- a/app/helpers/icons_helper.rb +++ b/app/helpers/icons_helper.rb @@ -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)