Semaphore/public/html/projects/dashboard.jade

28 lines
1.1 KiB
Plaintext
Raw Normal View History

.row
.col-sm-7
h3.no-top-margin Project activity
ul.list-unstyled
li(ng-repeat="event in events")
2016-04-17 02:20:23 +02:00
time(ng-bind="event.created | date:'short'")
span : 
span(ng-bind="event.object_name")
2016-04-17 12:41:36 +02:00
span(ng-if="event.object_name.length > 0") - 
span {{ event.description }}
.col-sm-5
h4.no-top-margin Task history
ul.list-group
li.list-group-item(ng-repeat="task in tasks"): a(ng-click="openTask(task)" href="#")
2016-04-17 02:20:23 +02:00
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'")
2016-04-17 02:20:23 +02:00
|  
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' }}
2016-04-17 02:20:23 +02:00
br
span Duration
2016-04-17 02:20:23 +02:00
span.pull-right {{ task.duration }}