Commit Graph

7 Commits

Author SHA1 Message Date
Kris 71c9104e48
REFACTOR: move widget to an ember component (#34) 2023-08-03 12:05:58 -04:00
Arkshine 6bc3216b80
FIX: Links are not displayed if the setting doesn't associate a locale (#31)
Related #30.
Reported here: https://meta.discourse.org/t/missing-custom-header-links-after-update/262594

#### Current behavior
The links are not displayed if a locale is not provided in the setting.

#### Expected behavior
By not associating a locale with a link, the link should be displayed by default regardless of the user's language.
2023-04-24 09:09:35 -05:00
Lena MONTENOT 0661c627cb
Add a locale filter to links (#30)
* Add a locale attribute to custom header links

This attribute is to be set to a language code like 'fr', 'en' or 'de'.

* Filter out links which locale is different from the html document's

* prettier

* more syntax

---------

Co-authored-by: Lena Montenot <lena.montenot@commown.coop>
Co-authored-by: Jordan Vidrine <jordan@jordanvidrine.com>
2023-04-21 08:30:07 -05:00
Jarek Radosz a594339a5f
DEV: Add CI setup (#23) 2022-06-18 01:33:51 +02:00
awesomerobot 3dae9074dc need import 2021-06-02 16:48:34 -04:00
awesomerobot 6c59a269f2 DEV: When decorating home-logo, allow target blank 2021-06-02 16:47:29 -04:00
jjaffeux a22d636551 REFACTOR: new code layout/removes jquery/coding standards 2020-09-23 17:00:33 +02:00