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_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");
|
||||
}
|
||||
setInterval(processBasicInfo,1000);
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
<p>
|
||||
{{ mysession['nickname'] }}
|
||||
<small>{{ mysession['description'] }}</small>
|
||||
<small>10000 <img src="/static/img/bean.png" /></small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Body -->
|
||||
|
@ -132,6 +133,8 @@
|
|||
<p>{{ mysession['nickname'] }}</p>
|
||||
<!-- Status -->
|
||||
<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>
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
$("#"+index+"_disk").html(usedp+"%<br/>"+detail);
|
||||
},"json");
|
||||
$("#"+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;
|
||||
if(state == 'RUNNING')
|
||||
|
|
Loading…
Reference in New Issue