summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-30 01:42:52 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-30 01:43:14 (GMT)
commitc65e8fafc59c7bcc544a42955cb256ba940c1b50 (patch)
treee391cc43ac616accd1bc44610d4f26c1e246302d /www/js
parentc040aa8a9b7158748733daadc0721463d932423a (diff)
server resurrection and icon license footer
Diffstat (limited to 'www/js')
-rw-r--r--www/js/rhctl.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/www/js/rhctl.js b/www/js/rhctl.js
index ea7adb8..616042e 100644
--- a/www/js/rhctl.js
+++ b/www/js/rhctl.js
@@ -131,12 +131,16 @@ function rhctl_draw_state(state) {
entry.find('.server-channel').text(value.Channel);
}
var h = entry.find('.server-health img');
- switch(value.Health) {
- case 'alive':
- case 'dead':
- h.attr('src', '/img/server-' + value.Health + '.png').attr('title', value.Health);
- break;
- default:
+ if(value.ResurrectionLevel > 0 && value.ResurrectionLevel < 1) {
+ h.addClass('blink').attr('src', '/img/server-resurrecting.png').attr('title', 'resurrecting');
+ } else {
+ switch(value.Health) {
+ case 'alive':
+ case 'dead':
+ h.attr('src', '/img/server-' + value.Health + '.png').attr('title', value.Health);
+ break;
+ default:
+ }
}
srvTable.append(entry)
});