Semaphore/public/html/projects/dashboard.jade
2016-05-08 10:36:17 +01:00

28 lines
1.1 KiB
Plaintext

.row
.col-sm-7
h3.no-top-margin Project activity
ul.list-unstyled
li(ng-repeat="event in events")
strong: time(ng-bind="event.created | date:'short'")
span : 
span(ng-bind="event.object_name")
span(ng-if="event.object_name.length > 0") - 
span {{ event.description }}
.col-sm-5
h4.no-top-margin Task history
ul.nav.nav-pills.nav-stacked
li(ng-repeat="task in tasks"): a(ng-click="openTask(task)" href="#")
i.fa.fa-fw.fa-clock-o.text-warning(ng-if="task.status == 'waiting'")
i.fa.fa-fw.fa-times.text-danger(ng-if="task.status == 'error'")
i.fa.fa-fw.fa-check.text-success(ng-if="task.status == 'success'")
i.fa.fa-fw.fa-play.text-warning(ng-if="task.status == 'running'")
|  
span(ng-if="task.playbook.length == 0") {{ task.tpl_playbook }}
span(ng-if="task.playbook.length > 0") {{ task.playbook }}
span.pull-right(ng-if="task.status == 'waiting'") {{ task.created | date:'short' }}
span.pull-right(ng-if="task.status != 'waiting'") {{ task.start | date:'short' }}
br
span Duration
span.pull-right {{ task.duration }}