Add a icon of bean on page.
This commit is contained in:
parent
e3bb1e1974
commit
64c16c6c3f
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
|
@ -206,7 +206,7 @@ function processBasicInfo()
|
||||||
$("#con_ip").html(basic_info.IP);
|
$("#con_ip").html(basic_info.IP);
|
||||||
}
|
}
|
||||||
$("#con_time").html(basic_info.RunningTime+"s");
|
$("#con_time").html(basic_info.RunningTime+"s");
|
||||||
$("#con_billing").html(basic_info.billing+" beans");
|
$("#con_billing").html(basic_info.billing+" <img src='/static/img/bean.png' />");
|
||||||
},"json");
|
},"json");
|
||||||
}
|
}
|
||||||
setInterval(processBasicInfo,1000);
|
setInterval(processBasicInfo,1000);
|
||||||
|
|
|
@ -91,6 +91,7 @@
|
||||||
<p>
|
<p>
|
||||||
{{ mysession['nickname'] }}
|
{{ mysession['nickname'] }}
|
||||||
<small>{{ mysession['description'] }}</small>
|
<small>{{ mysession['description'] }}</small>
|
||||||
|
<small>10000 <img src="/static/img/bean.png" /></small>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<!-- Menu Body -->
|
<!-- Menu Body -->
|
||||||
|
@ -132,6 +133,8 @@
|
||||||
<p>{{ mysession['nickname'] }}</p>
|
<p>{{ mysession['nickname'] }}</p>
|
||||||
<!-- Status -->
|
<!-- Status -->
|
||||||
<a href="#"><i class="fa fa-circle text-success"></i> {{ mysession['status']}}</a>
|
<a href="#"><i class="fa fa-circle text-success"></i> {{ mysession['status']}}</a>
|
||||||
|
<!-- Beans -->
|
||||||
|
<a href="#"><i><img src="/static/img/bean.png" /></i> 10000</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@
|
||||||
$("#"+index+"_disk").html(usedp+"%<br/>"+detail);
|
$("#"+index+"_disk").html(usedp+"%<br/>"+detail);
|
||||||
},"json");
|
},"json");
|
||||||
$("#"+index+"_time").html(data.monitor.basic_info.RunningTime+"s")
|
$("#"+index+"_time").html(data.monitor.basic_info.RunningTime+"s")
|
||||||
$("#"+index+"_billing").html(data.monitor.basic_info.billing+" beans")
|
$("#"+index+"_billing").html(data.monitor.basic_info.billing+" <img src='/static/img/bean.png' />")
|
||||||
|
|
||||||
var state = data.monitor.basic_info.State;
|
var state = data.monitor.basic_info.State;
|
||||||
if(state == 'RUNNING')
|
if(state == 'RUNNING')
|
||||||
|
|
Loading…
Reference in New Issue