Improved admin dashboard

This commit is contained in:
2017-06-18 17:44:18 +02:00
parent e99225ce10
commit 130cfca211
3 changed files with 65 additions and 6 deletions

View File

@ -1,6 +1,31 @@
component Admin(user *arn.User)
h2.page-title Admin
component Admin(user *arn.User, types []string)
h2.page-title Admin Panel
h3 Server
table
tr
td Go version:
td= runtime.Version()
//- thead
//- tr
//- th Metric
//- th Value
tbody
tr
td CPU count:
td= runtime.NumCPU()
tr
td Goroutines:
td= runtime.NumGoroutine()
tr
td Go version:
td= runtime.Version()
h3 Types
table
//- thead
//- tr
//- th Table
tbody
each typeName in types
tr
td= typeName
td
a(href="/api/" + strings.ToLower(typeName) + "/")= "/api/" + strings.ToLower(typeName) + "/"