87 lines
2.2 KiB
JavaScript
87 lines
2.2 KiB
JavaScript
// Generated by CoffeeScript 1.12.5
|
|
var pandaRouteSetup;
|
|
|
|
pandaRouteSetup = function(context) {
|
|
context.route('project', function() {
|
|
return this.route('show', {
|
|
path: ':project_id'
|
|
}, function() {
|
|
this.route('dunlop');
|
|
this.route('tracker-subjects');
|
|
this.route('tracker-subject', {
|
|
path: 'tracker-subject/:tracker_subject_id'
|
|
});
|
|
this.route('add-progress');
|
|
this.route('dunlop-generator');
|
|
this.route('analysis');
|
|
this.route('operate');
|
|
this.route('project-instance', function() {
|
|
return this.route('show', {
|
|
path: ':project_instance_id'
|
|
}, function() {
|
|
this.route('groups');
|
|
this.route('list');
|
|
this.route('actions');
|
|
return this.route('graphs');
|
|
});
|
|
});
|
|
this.route('project-instance-group', function() {
|
|
return this.route('show', {
|
|
path: ':project_instance_group_id'
|
|
});
|
|
});
|
|
return this.route('project-instance-action', function() {
|
|
return this.route('show', {
|
|
path: ':project_instance_action_id'
|
|
});
|
|
});
|
|
});
|
|
});
|
|
context.route('login');
|
|
context.route('action-list');
|
|
context.route('organization', function() {
|
|
return this.route('show', {
|
|
path: ':organization_id'
|
|
}, function() {
|
|
return this.route('project-actions');
|
|
});
|
|
});
|
|
context.route('user', function() {
|
|
this.route('profile');
|
|
return this.route('show', {
|
|
path: ':user_id'
|
|
});
|
|
});
|
|
context.route('tracker-subject', function() {
|
|
return this.route('show', {
|
|
path: ':tracker_subject_id'
|
|
}, function() {
|
|
this.route('tracking-connections');
|
|
this.route('tracker-group', {
|
|
path: 'tracker-groups/:tracker_group_id'
|
|
});
|
|
return this.route('project', {
|
|
path: 'projects/:project_id'
|
|
});
|
|
});
|
|
});
|
|
context.route('event');
|
|
context.route('action-event');
|
|
context.route('meeting-reports');
|
|
context.route('manual', function() {
|
|
this.route('project', function() {
|
|
return this.route('dunlop');
|
|
});
|
|
return this.route('tracker', function() {
|
|
return this.route('tricks');
|
|
});
|
|
});
|
|
return true;
|
|
};
|
|
|
|
export {
|
|
pandaRouteSetup
|
|
};
|
|
|
|
export default pandaRouteSetup;
|