mirror of
https://github.com/Febbweiss/ProjectDeployer.git
synced 2026-03-04 22:25:38 +00:00
Feature: add deployment + deployment logs
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user