8cc1b02d19
Adds a 3-pane layout option for showing details, as well as a dashboard sub-route for showing contributor details in the new details pane.
28 lines
642 B
JavaScript
28 lines
642 B
JavaScript
import EmberRouter from '@ember/routing/router';
|
|
import config from './config/environment';
|
|
|
|
const Router = EmberRouter.extend({
|
|
location: config.locationType,
|
|
rootURL: config.rootURL
|
|
});
|
|
|
|
Router.map(function() {
|
|
this.route('dashboard', function() {
|
|
this.route('contributors', function() {
|
|
this.route('show', { path: ':id' });
|
|
});
|
|
});
|
|
this.route('proposals', function() {
|
|
this.route('new');
|
|
});
|
|
this.route('contributions', function() {
|
|
this.route('new');
|
|
});
|
|
this.route('contributors', function() {
|
|
this.route('new');
|
|
this.route('edit', { path: ':id/edit' });
|
|
});
|
|
});
|
|
|
|
export default Router;
|