mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
conditional error stack showing
This commit is contained in:
parent
0d44a4cfa5
commit
12fbd92bad
@ -103,7 +103,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<h4>{% trans "Plugin errors" %}</h4>
|
{% plugin_errors as pl_errors %}
|
||||||
|
{% if pl_errors %}
|
||||||
|
<h4>{% trans "Plugin Error Stack" %}</h4>
|
||||||
<div class='table-responsive'>
|
<div class='table-responsive'>
|
||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed'>
|
||||||
<thead>
|
<thead>
|
||||||
@ -115,7 +117,6 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{% plugin_errors as pl_errors %}
|
|
||||||
{% for stage, errors in pl_errors.items %}
|
{% for stage, errors in pl_errors.items %}
|
||||||
{% for error_detail in errors %}
|
{% for error_detail in errors %}
|
||||||
{% for name, message in error_detail.items %}
|
{% for name, message in error_detail.items %}
|
||||||
@ -130,4 +131,6 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user