Commit Graph

10 Commits

Author SHA1 Message Date
Alan Guo Xiang Tan f537e66015
DEV: Switch to new API to render into plugin outlet take 2 (#40)
This reverts commit c2c6b9bc37.

Theme compatibility issue has been fixed.
2023-10-18 08:42:29 +08:00
Alan Guo Xiang Tan d3498f70b7
Revert "DEV: Switch to new API to render into plugin outlet (#37)" (#39)
This partially reverts commit 87404864d2.

Compatibility issue is causing the theme to break: https://meta.discourse.org/t/-/282144
2023-10-16 15:23:33 +08:00
Alan Guo Xiang Tan 87404864d2
DEV: Switch to new API to render into plugin outlet (#37)
Why this change?

The renderInOutlet plugin API was introduced in Discourse core which
we will prefer to use going forward.
2023-10-11 11:33:37 +08:00
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