diff --git a/pkg/web/templates/index.html b/pkg/web/templates/index.html index 94ff162..5e84151 100644 --- a/pkg/web/templates/index.html +++ b/pkg/web/templates/index.html @@ -374,7 +374,7 @@ function showSection(sectionId) { //* Fetch data and render dashboard : * //******************************************************************* -// Fetch summary (jails, stats, last 5 bans) +// Fetch summary (jails, stats, last bans) function fetchSummary() { return fetch('/api/summary') .then(function(res) { return res.json(); }) @@ -398,6 +398,8 @@ function renderDashboard(data) { // Add a search bar html += ` +
+ Overview active Jails and Blocks
@@ -409,7 +411,6 @@ function renderDashboard(data) { html += '

No jails found.

'; } else { html += '' - + '

Overview

' + '
' + '' + ' ' @@ -437,11 +438,13 @@ function renderDashboard(data) { + ''; }); - html += '
'; + html += ''; + html += '
'; } // Last 5 bans - html += '

Last 5 Ban Events

'; + html += '
'; + html += ' Last 5 Ban Events'; if (!data.lastBans || data.lastBans.length === 0) { html += '

No recent bans found.

'; } else { @@ -468,7 +471,7 @@ function renderDashboard(data) { + ''; }); - html += ''; + html += '
'; } document.getElementById('dashboard').innerHTML = html;