47 lines
1.8 KiB
HTML
47 lines
1.8 KiB
HTML
<div id="system-health">
|
|
<div class="row">
|
|
<div class="col-12 mb-3">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<span>Database</span>
|
|
<span class="badge bg-{% if health_data.database_status == 'healthy' %}success{% else %}danger{% endif %}">
|
|
{{ health_data.database_status|title }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12 mb-3">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<span>Cache</span>
|
|
<span class="badge bg-{% if health_data.cache_status == 'healthy' %}success{% else %}danger{% endif %}">
|
|
{{ health_data.cache_status|title }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12 mb-3">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<span>System Load</span>
|
|
<span class="badge bg-{% if health_data.system_load == 'normal' %}success{% elif health_data.system_load == 'high' %}warning{% else %}danger{% endif %}">
|
|
{{ health_data.system_load|title }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12 mb-3">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<span>Recent Errors</span>
|
|
<span class="badge bg-{% if health_data.recent_errors == 0 %}success{% elif health_data.recent_errors < 5 %}warning{% else %}danger{% endif %}">
|
|
{{ health_data.recent_errors }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<small class="text-muted">
|
|
<i class="fas fa-sync-alt"></i> Last updated: {{ health_data.last_updated }}
|
|
</small>
|
|
</div>
|
|
|