2017-10-02 12:56:51 +00:00
|
|
|
component AdminTabs
|
|
|
|
.tabs
|
|
|
|
Tab("Server", "server", "/admin")
|
|
|
|
Tab("AniList", "list", "/admin/anilist")
|
|
|
|
Tab("WebDev", "html5", "/admin/webdev")
|
|
|
|
|
2017-10-02 12:28:10 +00:00
|
|
|
component Admin(user *arn.User, cpuUsage, memUsage, diskUsage float64, platform, family, platformVersion, kernelVersion string)
|
2017-07-06 20:23:32 +00:00
|
|
|
h1.page-title Admin Panel
|
2017-06-18 15:44:18 +00:00
|
|
|
|
2017-10-02 12:56:51 +00:00
|
|
|
AdminTabs
|
|
|
|
|
2017-10-02 12:28:10 +00:00
|
|
|
.widgets
|
|
|
|
.widget.mountable
|
|
|
|
h3.widget-title Usage
|
|
|
|
|
|
|
|
table
|
|
|
|
tbody
|
|
|
|
tr
|
|
|
|
td CPU usage:
|
|
|
|
td
|
|
|
|
span= int(cpuUsage + 0.5)
|
|
|
|
span %
|
|
|
|
tr
|
|
|
|
td Memory usage:
|
|
|
|
td
|
|
|
|
span= int(memUsage + 0.5)
|
|
|
|
span %
|
|
|
|
tr
|
|
|
|
td Disk usage:
|
|
|
|
td
|
|
|
|
span= int(diskUsage + 0.5)
|
|
|
|
span %
|
|
|
|
|
|
|
|
.widget.mountable
|
|
|
|
h3.widget-title OS
|
|
|
|
|
|
|
|
table
|
|
|
|
tbody
|
|
|
|
tr
|
|
|
|
td Platform:
|
|
|
|
td= platform
|
|
|
|
tr
|
|
|
|
td Family:
|
|
|
|
td= family
|
|
|
|
tr
|
|
|
|
td Version:
|
|
|
|
td= platformVersion
|
|
|
|
tr
|
|
|
|
td Kernel:
|
|
|
|
td= kernelVersion
|
|
|
|
|
|
|
|
.widget.mountable
|
|
|
|
h3.widget-title Hardware
|
|
|
|
|
|
|
|
table
|
|
|
|
tbody
|
|
|
|
tr
|
|
|
|
td CPUs:
|
|
|
|
td= runtime.NumCPU()
|
|
|
|
|
|
|
|
.widget.mountable
|
|
|
|
h3.widget-title Go
|
|
|
|
|
|
|
|
table
|
|
|
|
tbody
|
|
|
|
tr
|
|
|
|
td Version:
|
|
|
|
td= runtime.Version()
|
|
|
|
tr
|
|
|
|
td Goroutines:
|
|
|
|
td= runtime.NumGoroutine()
|