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

25 lines
614 B
Handlebars

{{#if this.shouldShow}}
<ul
class="custom-header-links
{{if @outletArgs.attrs.topic 'custom-header-links--hide-links'}}"
>
{{#each this.links as |link|}}
<li
class="headerLink
{{link.device}}
{{link.keepOnScrollClass}}
{{link.locale}}
{{link.linkClass}}
{{link.keepOnScroll}}"
>
<a
title={{link.anchorAttributes.title}}
href={{link.anchorAttributes.href}}
target={{link.anchorAttributes.target}}
>
{{link.linkText}}
</a>
</li>
{{/each}}
</ul>
{{/if}}