open-vault/ui/app/templates/components/namespace-link.hbs
Chelsea Shaw 0589dc1f53
UI: Update <a> tags to LinkTo's (#17866)
* chore: shared external link component, glimmerization

* chore: update easy a tags

* chore: update other a tags

* chore: lil cleanup

* changelog
2022-11-11 09:56:44 -06:00

17 lines
475 B
Handlebars

<ExternalLink
@href={{this.namespaceLink}}
@sameTab={{true}}
class={{concat "is-block " this.class}}
data-test-namespace-link={{this.normalizedNamespace}}
>
{{#if (has-block)}}
{{yield}}
{{else}}
<div class="level is-mobile">
<span class="level-left">{{this.namespaceDisplay}}</span>
<span class="level-right">
<Chevron @isButton={{true}} class="button is-ghost icon has-text-grey" />
</span>
</div>
{{/if}}
</ExternalLink>