2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Fix some build status code thingies

This commit is contained in:
Oliver Walters
2019-06-04 23:42:48 +10:00
parent f731c45ce8
commit 4f1acddb5d
3 changed files with 14 additions and 9 deletions

View File

@ -1,10 +1,10 @@
{% if build.status == build.PENDING %}
{% if build.status == BuildStatus.PENDING %}
<span class='label label-large label-info'>
{% elif build.status == build.ALLOCATED %}
{% elif build.status == BuildStatus.ALLOCATED %}
<span class='label label-large label-primary'>
{% elif build.status == build.CANCELLED %}
{% elif build.status == BuildStatus.CANCELLED %}
<span class='label label-large label-danger'>
{% elif build.status == build.COMPLETE %}
{% elif build.status == BuildStatus.COMPLETE %}
<span class='label label-large label-success'>
{% endif %}
{{ build.get_status_display }}