Semaphore/public/html/tasks.pug
Matej Kramny 80538908a8 update contributing.md
- fix ./make.sh watch
- rename .jade -> .pug
2017-02-22 03:51:23 -08:00

40 lines
1.2 KiB
Plaintext

h1(ng-if="tasks.tasks.length") Tasks
small(ng-if="status.length > 0" ng-bind="status")
table.table.table-hover(ng-if="tasks.tasks.length")
thead
tr
th Job Name
th Play File
th Status
th  
tbody
tr(ng-repeat="task in tasks.tasks")
td {{ task.data.job.name }}
td {{ task.data.job.play_file }}
td
i.fa.fa-fw.fa-spin.fa-cog(ng-if="task.data.status == 'Running'")
i.fa.fa-fw.fa-check(ng-if="task.data.status == 'Completed'")
i.fa.fa-fw.fa-times(ng-if="task.data.status == 'Failed'")
| {{ task.data.status }}
td
.btn-group.pull-right
button.btn.btn-default.btn-xs(ng-click="openOutput(task)" ng-if="task.data.status != 'Queued'")
i.fa.fa-fw.fa-file-code-o
| See Output
button.btn.btn-danger.btn-xs(ng-click="removeTask(task)" ng-if="task.data.status != 'Running'")
i.fa.fa-fw.fa-times
| Remove Task
#taskOutput.modal.fade
.modal-dialog.modal-lg
.modal-content
.modal-header
button(data-dismiss="modal").close: span ×
h4.modal-title Task Output
.modal-body
pre: code {{ openTask.data.output }}
h4.text-center.text-muted(ng-if="!tasks.tasks.length" style="margin-top: 15px;") It seems no 
a(ui-sref="playbook.jobs") jobs
|  have been run yet.