Skip to content

Commit

Permalink
EWPP-1317: Simplify logo path generation on language selection page.
Browse files Browse the repository at this point in the history
  • Loading branch information
imanoleguskiza committed Jul 14, 2021
1 parent 3da855f commit 65d2a49
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
{% endif %}
{% endif %}

{% if ecl_component_library == 'eu' %}
{% set logo_path = ecl_logo_path ~ '/logo-eu--mute.svg'%}
{% else %}
{% set logo_path = ecl_logo_path ~ '/logo-ec--mute.svg'%}
{% endif %}

{% include '@ecl-twig/language-list' with {
eu_category: eu_category,
non_eu_category: non_eu_category,
Expand All @@ -32,6 +26,6 @@
icon_path: ecl_icon_path,
logo: {
alt: 'European Commission logo'|t,
path: logo_path
path: ecl_logo_path ~ '/logo-' ~ ecl_component_library ~ '--mute.svg'
}
} only %}

0 comments on commit 65d2a49

Please sign in to comment.