diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-06-30 16:42:04 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-09 19:40:12 +0200 |
| commit | 353d19019153d6e7ee4e98b18d790b2523901c58 (patch) | |
| tree | 434cfdf6a7ae4cbccd5a5625aea649ca999713a9 /dashboard/app/handler.go | |
| parent | 894db56cb21049ff801b30b3f294854d6da099de (diff) | |
dashboard/app: add navigation buttons
Currently we have only "fixed" link at the top of the page.
"invalid" is missing and this is not scalable.
Add natigation buttons (tabs) for main pages.
Diffstat (limited to 'dashboard/app/handler.go')
| -rw-r--r-- | dashboard/app/handler.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dashboard/app/handler.go b/dashboard/app/handler.go index 561547793..ed55831d8 100644 --- a/dashboard/app/handler.go +++ b/dashboard/app/handler.go @@ -92,6 +92,7 @@ func serveTemplate(w http.ResponseWriter, name string, data interface{}) error { type uiHeader struct { Admin bool + URLPath string LoginLink string AnalyticsTrackingID string Subpage string @@ -111,6 +112,7 @@ type cookieData struct { func commonHeaderRaw(c context.Context, r *http.Request) *uiHeader { h := &uiHeader{ Admin: accessLevel(c, r) == AccessAdmin, + URLPath: r.URL.Path, AnalyticsTrackingID: config.AnalyticsTrackingID, } if user.Current(c) == nil { |
