2017-10-02 12:56:51 +00:00
|
|
|
component AdminTabs
|
|
|
|
.tabs
|
|
|
|
Tab("Server", "server", "/admin")
|
2017-10-03 13:26:29 +00:00
|
|
|
Tab("WebDev", "html5", "/admin/webdev")
|
2018-04-17 16:20:53 +00:00
|
|
|
Tab("Client errors", "exclamation", "/admin/errors/client")
|
2018-04-16 13:17:23 +00:00
|
|
|
Tab("Registrations", "user-plus", "/admin/registrations")
|
2017-10-07 21:24:09 +00:00
|
|
|
Tab("Purchases", "shopping-cart", "/admin/purchases")
|
2018-10-18 01:15:06 +00:00
|
|
|
Tab("Payments", "paypal", "/admin/payments")
|
2018-03-09 01:34:50 +00:00
|
|
|
|
|
|
|
.corner-buttons
|
2018-03-23 20:33:19 +00:00
|
|
|
a.button(href="/editor", aria-label="Editor")
|
2017-10-06 20:07:12 +00:00
|
|
|
Icon("pencil")
|
|
|
|
span.tab-text Editor
|
2017-10-02 12:56:51 +00:00
|
|
|
|
2017-11-03 08:34:21 +00:00
|
|
|
component Admin(user *arn.User, 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-11-03 11:02:13 +00:00
|
|
|
.admin
|
2017-11-03 08:34:21 +00:00
|
|
|
//- .widget.mountable
|
|
|
|
//- h3.widget-title Usage
|
2017-10-02 12:28:10 +00:00
|
|
|
|
2017-11-03 08:34:21 +00:00
|
|
|
//- 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 %
|
2017-10-02 12:28:10 +00:00
|
|
|
|
|
|
|
.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()
|