2019-12-08 03:59:58 -05:00
|
|
|
{{define "page/home"}}
|
|
|
|
{{template "common/header" .}}
|
|
|
|
{{template "common/menu" .}}
|
|
|
|
<div class="nb-container">
|
|
|
|
<div class="ui container">
|
2019-12-09 03:02:49 -05:00
|
|
|
<div class="ui four status cards">
|
2019-12-08 10:18:29 -05:00
|
|
|
{{range $server := .Servers}}
|
|
|
|
<div class="card">
|
|
|
|
<div class="content">
|
2019-12-09 05:14:31 -05:00
|
|
|
<div class="header">{{if $server.Host.CountryCode}}<i
|
|
|
|
class="{{$server.Host.CountryCode}} flag"></i>{{end}}{{$server.Name}}
|
|
|
|
<i data-html="
|
|
|
|
<div class='content'>
|
|
|
|
{{$server.Host}}
|
|
|
|
{{$server.State}}
|
|
|
|
</div>" class="yellow info circle icon"></i>
|
2019-12-09 03:02:49 -05:00
|
|
|
</div>
|
2019-12-08 10:18:29 -05:00
|
|
|
<div class="description">
|
2019-12-09 03:02:49 -05:00
|
|
|
<div class="ui grid">
|
|
|
|
<div class="three wide column">CPU</div>
|
|
|
|
<div class="thirteen wide column">
|
2019-12-09 05:14:31 -05:00
|
|
|
<div class="ui active progress" data-value="{{$server.State.CPU}}" data-total="100">
|
2019-12-09 03:02:49 -05:00
|
|
|
<div class="bar">
|
|
|
|
<div class="progress"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="three wide column">硬盘</div>
|
|
|
|
<div class="thirteen wide column">
|
2019-12-09 05:14:31 -05:00
|
|
|
<div class="ui active progress" data-value="{{$server.State.DiskUsed}}"
|
|
|
|
data-total="{{$server.State.DiskTotal}}">
|
2019-12-09 03:02:49 -05:00
|
|
|
<div class="bar">
|
|
|
|
<div class="progress"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="three wide column">内存</div>
|
|
|
|
<div class="thirteen wide column">
|
2019-12-09 05:14:31 -05:00
|
|
|
<div class="ui active progress" data-value="{{$server.State.MemUsed}}"
|
|
|
|
data-total="{{$server.State.MemTotal}}">
|
2019-12-09 03:02:49 -05:00
|
|
|
<div class="bar">
|
|
|
|
<div class="progress"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-08 10:18:29 -05:00
|
|
|
</div>
|
2019-12-09 05:14:31 -05:00
|
|
|
<div class="three wide column">网络</div>
|
|
|
|
<div class="thirteen wide column">
|
|
|
|
<i class="arrow alternate circle down outline icon"></i>{{$server.State.NetIn|bf}}
|
|
|
|
<i class="arrow alternate circle up outline icon"></i>{{$server.State.NetOut|bf}}
|
|
|
|
</div>
|
2019-12-08 10:18:29 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2019-12-08 03:59:58 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "common/footer" .}}
|
2019-12-09 05:14:31 -05:00
|
|
|
<script>
|
|
|
|
$('.yellow.info.circle.icon').popup();
|
|
|
|
$('.progress').progress();
|
|
|
|
</script>
|
2019-12-08 03:59:58 -05:00
|
|
|
{{end}}
|