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:
21
client/project_details.controller.js
Normal file
21
client/project_details.controller.js
Normal file
@@ -0,0 +1,21 @@
|
||||
Template.deploymentsList.helpers({
|
||||
deployments: function () {
|
||||
return DeploymentService.list();
|
||||
}
|
||||
});
|
||||
|
||||
Template.deploymentDetails.helpers({
|
||||
format: function() {
|
||||
return this.data.replace(/\n/g, '<br />');
|
||||
},
|
||||
running: function() {
|
||||
var string = this.status;
|
||||
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||
}
|
||||
});
|
||||
|
||||
Template.deploymentBtn.helpers({
|
||||
running: function() {
|
||||
return this.status === 'pending' ? 'visible' : 'hidden';
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user