Browse Source

[WebUI] Highlight uptime of restarted servers

tags/2.6
moisseev 3 years ago
parent
commit
261ab4ee52
2 changed files with 6 additions and 1 deletions
  1. 3
    0
      interface/css/rspamd.css
  2. 3
    1
      interface/js/app/stats.js

+ 3
- 0
interface/css/rspamd.css View File

@@ -57,6 +57,9 @@ small,
.success > td {
background-color: #eef9e7;
}
td.warning {
background-color: #fff8e6;
}

/* bootstrap 4 additionals */
.btn-group-xs > .btn,

+ 3
- 1
interface/js/app/stats.js View File

@@ -128,7 +128,9 @@ define(["jquery", "d3pie"],
"<td>" + key + "</td>" +
"<td>" + val.host + "</td>" +
'<td class="text-center"><span class="icon"><i class="' + glyph_status + '"></i></span></td>' +
'<td class="text-right">' + uptime + "</td>" +
'<td class="text-right' +
(val.data.uptime < 3600 ? ' warning" title="Has been restarted within the last hour"' : "") +
'">' + uptime + "</td>" +
"<td>" + version + "</td>" +
"<td>" + short_id + "</td></tr>");


Loading…
Cancel
Save