...
|
...
|
@@ -185,15 +185,18 @@ |
|
|
var container = Util.createDOM('<div class="node-container"></div>');
|
|
|
var title = Util.createDOM('<div class="widget-title" style="height: 36px;"></div>');
|
|
|
|
|
|
if(!model.disabledFlag){
|
|
|
title.appendChild(Util.createDOM('<h5>'+model.label+'</h5>'));
|
|
|
var a = Util.createDOM('<a href="#" onclick="alert(1)" style="float:right;margin-right: 10px;"><H5 style="padding-right:0px;padding-left:0px;"><span class="glyphicon glyphicon-info-sign"></span></H5></a>');
|
|
|
title.appendChild(a);
|
|
|
}else{
|
|
|
title.appendChild(Util.createDOM('<h5>'+model.label+'<small style="margin-left:5px;font-size:8px;color:red;">down</small></h5>'));
|
|
|
var colorBadge="#4169E1";
|
|
|
if(model.disabledFlag){
|
|
|
colorBadge="#F90426";
|
|
|
}else if(model.no_master==1){
|
|
|
colorBadge="#5bc0de";
|
|
|
}
|
|
|
title.appendChild(Util.createDOM('<h5><span class="badge" style="margin-right:5px;background-color:'+colorBadge+';font-weight:normal;">'+model.badge+'</span>'+model.label+'</h5>'));
|
|
|
var a = Util.createDOM('<a href="#" onclick="alert(1)" style="float:right;margin-right: 10px;"><H5 style="padding-right:0px;padding-left:0px;"><span class="glyphicon glyphicon-info-sign"></span></H5></a>');
|
|
|
title.appendChild(a);
|
|
|
|
|
|
|
|
|
var content = Util.createDOM('<div class="widget-content" style="height: 70px;">'+model.hostname+':'+model.port+'</div>');
|
|
|
var content = Util.createDOM('<div class="widget-content" style="height: 70px;">'+model.hostname+' '+model.port+'</div>');
|
|
|
container.appendChild(title);
|
|
|
container.appendChild(content);
|
|
|
return container;
|
...
|
...
|
|