mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
4049c8e915
- Adds global context object "system_healthy" (boolean) - Framework for running system health checks - Updated system info forms - Displays warning next to user menu if system health errors exist (cherry picked from commit ce6d626ab39147fc389de90815ca8baae2385d82)
60 lines
1.7 KiB
HTML
60 lines
1.7 KiB
HTML
{% load static %}
|
|
{% load inventree_extras %}
|
|
{% load i18n %}
|
|
|
|
<table class='table table-striped table-condensed'>
|
|
<col width='25'>
|
|
|
|
<tr>
|
|
<td colspan="3"><b>{% trans "Server" %}</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class='fas fa-server'></span></td>
|
|
<td>{% trans "Instance Name" %}</td>
|
|
<td>{% inventree_instance_name %}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class='fas fa-exclamation-triangle'></span></td>
|
|
<td>{% trans "Server status" %}</td>
|
|
<td>
|
|
{% if system_healthy %}
|
|
<span class='label label-green'>{% trans "Healthy" %}</span>
|
|
{% else %}
|
|
<span class='label label-red'>{% trans "Issues detected" %}</span>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
|
|
{% if not system_healthy %}
|
|
{% for issue in system_issues %}
|
|
<!-- TODO - Enumerate system issues here! -->
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
<tr>
|
|
<td colspan='3'><b>{% trans "Parts" %}</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class='fas fa-sitemap'></span></td>
|
|
<td>{% trans "Part Categories" %}</td>
|
|
<td>{{ part_cat_count }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class='fas fa-shapes'></span></td>
|
|
<td>{% trans "Parts" %}</td>
|
|
<td>{{ part_count }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"><b>{% trans "Stock Items" %}</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class='fas fa-map-marker-alt'></span></td>
|
|
<td>{% trans "Stock Locations" %}</td>
|
|
<td>{{ stock_loc_count }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class='fas fa-boxes'></span></td>
|
|
<td>{% trans "Stock Items" %}</td>
|
|
<td>{{ stock_item_count }}</td>
|
|
</tr>
|
|
</table> |