Semaphore/lib/views/task/tasks.jade

36 lines
1.0 KiB
Plaintext
Raw Normal View History

h2 Tasks
small(ng-if="status.length > 0" ng-bind="status")
2014-08-25 22:19:05 +02:00
table.table.table-hover
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 }}