From: Loic Baron Date: Tue, 21 Apr 2015 09:52:35 +0000 (+0200) Subject: Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab X-Git-Tag: myslice-1.3~37 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a8104de58940697d33f0f38cb3c866b7ecf6f4f4;hp=26709c1cd29b40ac2e617a075a085e18da35e87c;p=myslice.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); } }); diff --git a/portal/templates/onelab/onelab_account-view.html b/portal/templates/onelab/onelab_account-view.html index 985974fb..e0629490 100644 --- a/portal/templates/onelab/onelab_account-view.html +++ b/portal/templates/onelab/onelab_account-view.html @@ -260,6 +260,7 @@ Slice Name Expiration Date Download + Delete {% for row in my_slices %} @@ -270,6 +271,11 @@ Download + + + {%endfor%}