73747938bd
Why this change? Since discourse/discourse@a440e15, we have started to support objects typed theme setting so we are switching this theme component to use it instead as it provides a much better UX for configuring the settings required for the theme component.
33 lines
806 B
Handlebars
33 lines
806 B
Handlebars
{{#if this.shouldShow}}
|
|
{{!
|
|
@outletArgs.attrs.topic is the legacy version. Can be removed once core v3.2.0.beta4 is released
|
|
and this Theme's compatibility file is updated
|
|
}}
|
|
<ul
|
|
class="custom-header-links
|
|
{{if
|
|
(or @outletArgs.topic @outletArgs.attrs.topic)
|
|
'custom-header-links--hide-links'
|
|
}}"
|
|
>
|
|
{{#each this.links as |link|}}
|
|
<li
|
|
class={{concat-class
|
|
"headerLink"
|
|
link.device
|
|
link.locale
|
|
link.linkClass
|
|
link.hideOnScroll
|
|
}}
|
|
>
|
|
<a
|
|
title={{link.anchorAttributes.title}}
|
|
href={{link.anchorAttributes.href}}
|
|
target={{link.anchorAttributes.target}}
|
|
>
|
|
{{link.linkText}}
|
|
</a>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
{{/if}} |