Feature: add deployment + deployment logs

This commit is contained in:
2015-11-25 15:13:00 +00:00
parent 9c8ed27c1b
commit e135c5d2c6
19 changed files with 416 additions and 68 deletions

View File

@@ -7,13 +7,32 @@ Router.map(function () {
this.route('home', {
path: '/',
});
this.route('management', function() {
this.subscribe('projects').wait();
this.route('projects', {
waitOn: function() {
return Meteor.subscribe('projects');
},
action: function() {
if (this.ready()) {
this.render();
} else {
this.render('Loading');
}
}
});
this.route('project_details', {
path: '/project/:_id',
waitOn: function() {
return [Meteor.subscribe('projects', this.params._id), Meteor.subscribe('deployments', this.params._id)];
},
data: function () {
return ProjectService.get(this.params._id);
},
action: function() {
if (this.ready()) {
this.render();
} else {
this.render('Loading');
}
}
});
});