mirror of
https://github.com/Febbweiss/ProjectDeployer.git
synced 2026-03-04 22:25:38 +00:00
21 lines
470 B
JavaScript
21 lines
470 B
JavaScript
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';
|
|
}
|
|
}) |