1
0

project_details.controller.js 470 B

123456789101112131415161718192021
  1. Template.deploymentsList.helpers({
  2. deployments: function () {
  3. return DeploymentService.list();
  4. }
  5. });
  6. Template.deploymentDetails.helpers({
  7. format: function() {
  8. return this.data.replace(/\n/g, '<br />');
  9. },
  10. running: function() {
  11. var string = this.status;
  12. return string.charAt(0).toUpperCase() + string.slice(1);
  13. }
  14. });
  15. Template.deploymentBtn.helpers({
  16. running: function() {
  17. return this.status === 'pending' ? 'visible' : 'hidden';
  18. }
  19. })