Add a icon of bean on page.

This commit is contained in:
zhuyj17 2016-08-10 16:45:46 +08:00
parent e3bb1e1974
commit 64c16c6c3f
4 changed files with 5 additions and 2 deletions

BIN
web/static/img/bean.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -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);

View File

@ -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>

View File

@ -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')