From 2733dcd52807c21a2831a524fb175c5b03ab9ea4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 12 Feb 2020 01:20:21 +0100 Subject: themes/sourcehut: display username in navbar --- themes/sourcehut/nav.html | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) (limited to 'themes/sourcehut/nav.html') diff --git a/themes/sourcehut/nav.html b/themes/sourcehut/nav.html index d41ccd8..972fc48 100644 --- a/themes/sourcehut/nav.html +++ b/themes/sourcehut/nav.html @@ -4,23 +4,26 @@ koushin mail - -
- - Settings - — - Log out - -
+ {{if .LoggedIn}} + +
+ + Logged in as {{.Username}} — + Settings + — + Log out + +
+ {{end}} -- cgit v1.2.3