Skip to content

Commit ae8320c

Browse files
committed
feat: 🎸 add consul and vault links to global header
1 parent 873b096 commit ae8320c

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

ui/app/templates/components/global-header.hbs

+26-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<nav class="navbar is-primary" title="navigation">
22
<div class="navbar-brand">
3-
<span data-test-header-gutter-toggle class="gutter-toggle" aria-label="menu" onclick={{action this.onHamburgerClick}}>
3+
<span
4+
data-test-header-gutter-toggle
5+
class="gutter-toggle"
6+
aria-label="menu"
7+
onclick={{action this.onHamburgerClick}}
8+
>
49
<HamburgerMenu />
510
</span>
611
<LinkTo @route="jobs" class="navbar-item is-logo" aria-label="Home">
@@ -14,10 +19,26 @@
1419
{{/if}}
1520
<div class="navbar-end">
1621
{{#if this.config.APP.showStorybookLink}}
17-
<a href="/storybook/" class="navbar-item">Storybook</a>
22+
<a href="/storybook/" class="navbar-item">
23+
Storybook
24+
</a>
1825
{{/if}}
19-
<a href="https://nomadproject.io/docs" class="navbar-item">Documentation</a>
20-
<LinkTo @route="settings.tokens" class="navbar-item">ACL Tokens</LinkTo>
26+
{{#if this.agent.config.UI.Consul.BaseUrl}}
27+
<a href={{this.agent.config.UI.Consul.BaseUrl}} class="navbar-item">
28+
Consul
29+
</a>
30+
{{/if}}
31+
{{#if this.agent.config.UI.Vault.BaseUrl}}
32+
<a href={{this.agent.config.UI.Vault.BaseUrl}} class="navbar-item">
33+
Vault
34+
</a>
35+
{{/if}}
36+
<a href="https://nomadproject.io/docs" class="navbar-item">
37+
Documentation
38+
</a>
39+
<LinkTo @route="settings.tokens" class="navbar-item">
40+
ACL Tokens
41+
</LinkTo>
2142
</div>
2243
</nav>
2344
<div class="navbar is-secondary">
@@ -29,4 +50,4 @@
2950
{{yield}}
3051
</ul>
3152
</nav>
32-
</div>
53+
</div>

0 commit comments

Comments
 (0)