diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html index 5187b15..a84ae4d 100644 --- a/ogcp/templates/dashboard.html +++ b/ogcp/templates/dashboard.html @@ -118,6 +118,7 @@ {{ _('Swap') }}
+ {% if stats['swap']['size'] %} + {% else %} +

No swap

+ {% endif %}
@@ -259,6 +263,7 @@ document.getElementById('memoryChart'), memoryChartConfig, ); + {% if stats['swap']['size'] %} const swapChartConfig = { type: 'doughnut', data: { @@ -294,5 +299,6 @@ document.getElementById('swapChart'), swapChartConfig, ); + {% endif %} {% endblock %}