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

More fixes

- Add a set of template tags for rendering status codes
- Improve build API filtering
- Remove some outdated files
- Fix unit testing
This commit is contained in:
Oliver Walters
2020-04-12 00:10:33 +10:00
parent 59778130cd
commit 7503596ea4
17 changed files with 94 additions and 116 deletions

View File

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

View File

@ -1,5 +1,5 @@
{% load i18n %}
{% load inventree_extras %}
{% load status_codes %}
{% load_status_codes %}