From: Loic Baron Date: Mon, 13 Apr 2015 16:11:37 +0000 (+0200) Subject: Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab X-Git-Tag: myslice-1.3~39 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2d87b060d44dd87c762e104dd232524736ee683e;hp=69894313781f00267451de0266c7e31739bb483c;p=unfold.git Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab --- diff --git a/portal/templates/_widget-monitor.html b/portal/templates/_widget-monitor.html index cb7af4fc..6a7ab7a7 100644 --- a/portal/templates/_widget-monitor.html +++ b/portal/templates/_widget-monitor.html @@ -14,14 +14,18 @@ $(document).ready(function() { $.get('/monitor/services', function(result) { for (var r in result) { - html = '
'; - html += '
'; - html += '
'; - html += '

'+result[r].name+'

'; - html += ''+result[r].type+''; - if (typeof(result[r].version) != 'undefined') - html += ' version '+result[r].version+''; - html += '

'; + if(r == 'error'){ + html = '
no monitoring available
' + }else{ + html = '
'; + html += '
'; + html += '
'; + html += '

'+result[r].name+'

'; + html += ''+result[r].type+''; + if (typeof(result[r].version) != 'undefined') + html += ' version '+result[r].version+''; + html += '

'; + } $('div#monitor-services').append(html); } });