Add a subnav to the volumes page

This commit is contained in:
Michael Lange 2020-05-01 23:38:55 -07:00
parent 1b47885bdb
commit dba9a25a13
2 changed files with 10 additions and 0 deletions

View file

@ -37,6 +37,10 @@ Router.map(function() {
this.route('volumes', function() {
this.route('volume', { path: '/:volume_name' });
});
this.route('plugins', function() {
this.route('plugin', { path: '/:plugin-name' });
});
});
this.route('allocations', function() {

View file

@ -1,4 +1,10 @@
{{title "CSI Volumes"}}
<div class="tabs is-subnav">
<ul>
<li data-test-tab="volumes">{{#link-to "csi.volumes.index" activeClass="is-active"}}Volumes{{/link-to}}</li>
<li data-test-tab="plugins">{{#link-to "csi.plugins.index" activeClass="is-active"}}Plugins{{/link-to}}</li>
</ul>
</div>
<section class="section">
{{#if isForbidden}}
{{partial "partials/forbidden-message"}}