open-nomad/ui/app/templates/components/gutter-menu.hbs

37 lines
1.1 KiB
Handlebars
Raw Normal View History

2017-09-19 14:47:10 +00:00
<div class="page-column is-left">
<div class="gutter">
<aside class="menu">
<p class="menu-label">
Workload
</p>
<ul class="menu-list">
<li>
<select
class="menu-item"
onchange={{action (queue
(action (mut system.activeNamespace))
(action onNamespaceChange)
) value="target.value"}}>
{{#each system.namespaces as |namespace|}}
<option value="{{namespace.name}}" selected={{eq namespace system.activeNamespace}}>
{{namespace.name}}
</option>
{{/each}}
</select>
</li>
2017-09-19 14:47:10 +00:00
<li>{{#link-to "jobs" activeClass="is-active"}}Jobs{{/link-to}}</li>
</ul>
<p class="menu-label">
Cluster
</p>
<ul class="menu-list">
<li>{{#link-to "nodes" activeClass="is-active"}}Clients{{/link-to}}</li>
<li>{{#link-to "servers" activeClass="is-active"}}Servers{{/link-to}}</li>
</ul>
</aside>
</div>
</div>
<div class="page-column is-right">
{{yield}}
</div>