Merge pull request #235 from rakshazi/patch-1

Task history: changed status colors
This commit is contained in:
Matej Kramny 2016-12-10 12:36:44 +09:00 committed by GitHub
commit 4de2ef7f84

View File

@ -13,7 +13,7 @@
h4.no-top-margin Task history
ul.nav.nav-pills.nav-stacked.task-history-list
li(ng-repeat="task in tasks"): a(ng-click="openTask(task)" href="#")
span(ng-class="{ 'text-warning': task.status == 'waiting' || task.status == 'running', 'text-danger': task.status == 'error', 'text-success': task.status == 'success' }")
span(ng-class="{ 'text-muted': task.status == 'waiting', 'text-info': task.status == 'running', 'text-danger': task.status == 'error', 'text-success': task.status == 'success' }")
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' }}