diff --git a/less/admin.less b/less/admin.less
index 183040c..9c4a7c2 100644
--- a/less/admin.less
+++ b/less/admin.less
@@ -1,31 +1,44 @@
.edit-page {
font-size: 1em;
min-height: 12em;
}
header.admin {
margin: 0;
h1 + a {
margin-left: 1em;
}
}
+nav#admin {
+ display: block;
+ margin: 0.5em 0;
+ a {
+ color: @primary;
+ &:first-child {
+ margin-left: 0;
+ }
+ &.selected {
+ font-weight: bold;
+ }
+ }
+}
.pager {
display: flex;
justify-content: center;
a {
color: #333;
font-family: @sansFont;
font-size: 0.86em;
padding: 0.5em 1em;
border: 1px solid #ccc;
&:hover {
text-decoration: none;
background: #efefef;
}
&.selected {
cursor: default;
background: #ccc;
}
}
}
diff --git a/templates/user/admin.tmpl b/templates/user/admin.tmpl
index 7628a48..a6e1389 100644
--- a/templates/user/admin.tmpl
+++ b/templates/user/admin.tmpl
@@ -1,211 +1,211 @@
{{define "admin"}}
{{template "header" .}}
-
Admin Dashboard
+ {{template "admin-header" .}}
{{if .Message}}
{{.Message}}
{{end}}
+
On this page
{{if not .SingleUser}}
Site
About page
Describe what your instance is about. Accepts Markdown.
Privacy page
Outline your privacy policy. Accepts Markdown.
{{end}}
Users
reset password
writefreely --reset-pass <username>
App Configuration
{{if .ConfigMessage}}
{{.ConfigMessage}}
{{end}}
Application
- WriteFreely
- {{.Version}}
- Server Uptime
- {{.SysStatus.Uptime}}
- Current Goroutines
- {{.SysStatus.NumGoroutine}}
- Current memory usage
- {{.SysStatus.MemAllocated}}
- Total mem allocated
- {{.SysStatus.MemTotal}}
- Memory obtained
- {{.SysStatus.MemSys}}
- Pointer lookup times
- {{.SysStatus.Lookups}}
- Memory allocate times
- {{.SysStatus.MemMallocs}}
- Memory free times
- {{.SysStatus.MemFrees}}
- Current heap usage
- {{.SysStatus.HeapAlloc}}
- Heap memory obtained
- {{.SysStatus.HeapSys}}
- Heap memory idle
- {{.SysStatus.HeapIdle}}
- Heap memory in use
- {{.SysStatus.HeapInuse}}
- Heap memory released
- {{.SysStatus.HeapReleased}}
- Heap objects
- {{.SysStatus.HeapObjects}}
- Bootstrap stack usage
- {{.SysStatus.StackInuse}}
- Stack memory obtained
- {{.SysStatus.StackSys}}
- MSpan structures in use
- {{.SysStatus.MSpanInuse}}
- MSpan structures obtained
- {{.SysStatus.HeapSys}}
- MCache structures in use
- {{.SysStatus.MCacheInuse}}
- MCache structures obtained
- {{.SysStatus.MCacheSys}}
- Profiling bucket hash table obtained
- {{.SysStatus.BuckHashSys}}
- GC metadata obtained
- {{.SysStatus.GCSys}}
- Other system allocation obtained
- {{.SysStatus.OtherSys}}
- Next GC recycle
- {{.SysStatus.NextGC}}
- Since last GC
- {{.SysStatus.LastGC}}
- Total GC pause
- {{.SysStatus.PauseTotalNs}}
- Last GC pause
- {{.SysStatus.PauseNs}}
- GC times
- {{.SysStatus.NumGC}}
{{template "footer" .}}
{{template "body-end" .}}
{{end}}
diff --git a/templates/user/admin/view-user.tmpl b/templates/user/admin/view-user.tmpl
index 5f2a032..2a74e5b 100644
--- a/templates/user/admin/view-user.tmpl
+++ b/templates/user/admin/view-user.tmpl
@@ -1,88 +1,87 @@
{{define "view-user"}}
{{template "header" .}}
{{template "admin-header" .}}
-
View Users
No. |
{{.User.ID}} |
Type |
{{if .User.IsAdmin}}Admin{{else}}User{{end}} |
Username |
{{.User.Username}} |
Joined |
{{.User.CreatedFriendly}} |
Total Posts |
{{.TotalPosts}} |
Last Post |
{{if .LastPost}}{{.LastPost}}{{else}}Never{{end}} |
Blogs
{{range .Colls}}
Alias |
{{.Alias}} |
Title |
{{.Title}} |
Description |
{{.Description}} |
Visibility |
{{.FriendlyVisibility}} |
Views |
{{.Views}} |
Posts |
{{.TotalPosts}} |
Last Post |
{{if .LastPost}}{{.LastPost}}{{else}}Never{{end}} |
{{if $.Config.Federation}}
Fediverse Followers |
{{.Followers}} |
{{end}}
{{end}}
{{template "footer" .}}
{{end}}
diff --git a/templates/user/include/header.tmpl b/templates/user/include/header.tmpl
index 76b1425..08a94c0 100644
--- a/templates/user/include/header.tmpl
+++ b/templates/user/include/header.tmpl
@@ -1,67 +1,70 @@
{{define "header"}}