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/address-book.html | 2 +- themes/sourcehut/address-object.html | 2 +- themes/sourcehut/compose.html | 2 +- themes/sourcehut/login.html | 9 +------- themes/sourcehut/mailbox.html | 2 +- themes/sourcehut/message.html | 2 +- themes/sourcehut/nav.html | 41 +++++++++++++++++++----------------- themes/sourcehut/settings.html | 2 +- 8 files changed, 29 insertions(+), 33 deletions(-) (limited to 'themes/sourcehut') diff --git a/themes/sourcehut/address-book.html b/themes/sourcehut/address-book.html index 4becfda..2df65c1 100644 --- a/themes/sourcehut/address-book.html +++ b/themes/sourcehut/address-book.html @@ -1,5 +1,5 @@ {{template "head.html"}} -{{template "nav.html"}} +{{template "nav.html" .Global}}
diff --git a/themes/sourcehut/address-object.html b/themes/sourcehut/address-object.html index 4e4f2de..11db5e1 100644 --- a/themes/sourcehut/address-object.html +++ b/themes/sourcehut/address-object.html @@ -1,5 +1,5 @@ {{template "head.html"}} -{{template "nav.html"}} +{{template "nav.html" .Global}} {{$fn := .AddressObject.Card.Value "FN"}} diff --git a/themes/sourcehut/compose.html b/themes/sourcehut/compose.html index 2433553..7538a36 100644 --- a/themes/sourcehut/compose.html +++ b/themes/sourcehut/compose.html @@ -1,5 +1,5 @@ {{template "head.html"}} -{{template "nav.html"}} +{{template "nav.html" .Global}}
diff --git a/themes/sourcehut/login.html b/themes/sourcehut/login.html index 08074fe..63edfd8 100644 --- a/themes/sourcehut/login.html +++ b/themes/sourcehut/login.html @@ -1,12 +1,5 @@ {{template "head.html"}} - +{{template "nav.html" .Global}}
diff --git a/themes/sourcehut/mailbox.html b/themes/sourcehut/mailbox.html index 313b89d..e360f25 100644 --- a/themes/sourcehut/mailbox.html +++ b/themes/sourcehut/mailbox.html @@ -1,5 +1,5 @@ {{template "head.html"}} -{{template "nav.html"}} +{{template "nav.html" .Global}}
diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html index 971b59f..4e1ab44 100644 --- a/themes/sourcehut/message.html +++ b/themes/sourcehut/message.html @@ -1,5 +1,5 @@ {{template "head.html"}} -{{template "nav.html"}} +{{template "nav.html" .Global}}
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 - - + {{if .LoggedIn}} + + + {{end}} diff --git a/themes/sourcehut/settings.html b/themes/sourcehut/settings.html index d52b100..292d5cc 100644 --- a/themes/sourcehut/settings.html +++ b/themes/sourcehut/settings.html @@ -1,5 +1,5 @@ {{template "head.html"}} -{{template "nav.html"}} +{{template "nav.html" .Global}}
-- cgit v1.2.3