From 09fb73bdd53da05f561e1a246e2b28aec69bb52b Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sat, 6 Apr 2019 11:15:14 -0400 Subject: [PATCH] Standardize admin navigation --- less/admin.less | 13 +++++++++++++ templates/user/admin.tmpl | 4 ++-- templates/user/admin/view-user.tmpl | 1 - templates/user/include/header.tmpl | 5 ++++- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/less/admin.less b/less/admin.less index 183040c..9c4a7c2 100644 --- a/less/admin.less +++ b/less/admin.less @@ -9,6 +9,19 @@ header.admin { 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; 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 @@ -43,13 +43,13 @@ function savePage(el) {
-

Admin Dashboard

+ {{template "admin-header" .}} {{if .Message}}

{{.Message}}

{{end}} +

On this page