Files
grecia/app/components/sdg/goals/icon_component.html.erb
Javi Martín ceed3c18d3 Display SDG icons alongside tags
We're using the translation fallbacks for the icons, just like we do for
texts.

Note we use the `render?` method provided by view_component to make sure
the component will not be rendered when certain features are disabled.

Also note the `find_asset` method works differently in development and
production, and so we use different approaches here.
2021-01-09 14:53:54 +01:00

2 lines
69 B
Plaintext

<%= image_tag image_path, alt: image_text, class: "sdg-goal-icon" %>