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:
@ -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>
|
@ -1,5 +1,5 @@
|
||||
{% load i18n %}
|
||||
{% load inventree_extras %}
|
||||
{% load status_codes %}
|
||||
|
||||
{% load_status_codes %}
|
||||
|
||||
|
Reference in New Issue
Block a user