mirror of https://github.com/rancher/ui.git
Add empty role list page
This commit is contained in:
parent
bb7f7cf531
commit
383b0fc9fa
|
|
@ -0,0 +1,8 @@
|
|||
import Controller from '@ember/controller';
|
||||
import FilterState from 'ui/mixins/filter-state';
|
||||
|
||||
const headers = []
|
||||
|
||||
export default Controller.extend(FilterState, {
|
||||
headers: headers,
|
||||
});
|
||||
|
|
@ -6,6 +6,11 @@ export default buildRoutes(function() {
|
|||
this.route('new', {path: '/add'});
|
||||
});
|
||||
|
||||
this.route('roles', {path: '/roles'}, function() {
|
||||
this.route('index', {path: '/'});
|
||||
this.route('new', {path: '/add'});
|
||||
});
|
||||
|
||||
this.route('audit-logs');
|
||||
this.route('catalog');
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
import Route from '@ember/routing/route';
|
||||
|
||||
export default Route.extend({
|
||||
model: function() {
|
||||
},
|
||||
});
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
<section class="header has-tabs clearfix p-0">
|
||||
<ul class="tab-nav">
|
||||
<li>{{#link-to "accounts"}}{{t 'nav.admin.accounts'}}{{/link-to}}</li>
|
||||
<li>{{#link-to "roles"}}{{t 'nav.admin.roles'}}{{/link-to}}</li>
|
||||
<li>{{#link-to "audit-logs"}}{{t 'nav.admin.audit'}}{{/link-to}}</li>
|
||||
<li>{{#link-to "catalog"}}{{t 'nav.admin.catalog'}}{{/link-to}}</li>
|
||||
<li>{{#link-to "settings.auth"}}{{t 'nav.admin.settings.auth'}}{{/link-to}}</li>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
<section class="header clearfix">
|
||||
<div class="pull-left">
|
||||
<h1>{{t 'rolesPage.index.header'}}</h1>
|
||||
</div>
|
||||
<div class="right-buttons">
|
||||
{{#link-to "roles.new" classNames="btn btn-sm bg-primary right-divider-btn"}} {{t 'rolesPage.index.localLink'}} {{/link-to}}
|
||||
</div>
|
||||
</section>
|
||||
Loading…
Reference in New Issue