{{define "theme-daynight/home"}}
{{if ts .CustomCode}} {{.CustomCode|safe}} {{end}}

- @#server.live?'Running':'Down'#@

- ### @#server.Name#@

- @#server.Host.Platform#@
- @#server.Host.CountryCode.toUpperCase()#@
- @#formatByteSize(server.State.MemUsed)#@ / @#formatByteSize(server.Host.MemTotal)#@
- @#server.State?secondToDate(server.State.Uptime):'-'#@
- @#formatByteSize(server.State.SwapUsed)#@ / @#formatByteSize(server.Host.SwapTotal)#@
- @#formatByteSize(server.State.DiskUsed)#@ / @#formatByteSize(server.Host.DiskTotal)#@
- @#formatByteSize(server.State.NetInTransfer)#@ (@#formatByteSize(server.State.NetInSpeed)#@/s)
- @#formatByteSize(server.State.NetOutTransfer)#@ (@#formatByteSize(server.State.NetOutSpeed)#@/s)

- #### CPU

  @#formatPercent(server.live,server.State.CPU,100).percent#@%

- #### RAM

  @#parseInt(server.State?server.State.MemUsed/server.Host.MemTotal*100:0)#@%

- #### 硬盘

  @#parseInt(server.State?server.State.DiskUsed/server.Host.DiskTotal*100:0)#@%

- 白昼模式
- 暗黑模式
- 网格视图
- 列表视图

{{end}}