From 656ff3931cf86c50a0b54da43cbf5f68344c58e0 Mon Sep 17 00:00:00 2001 From: r Date: Wed, 25 Dec 2019 16:38:47 +0000 Subject: Update header template and add option for custom css --- templates/about.tmpl | 2 +- templates/emoji.tmpl | 2 +- templates/error.tmpl | 2 +- templates/header.tmpl | 7 +++++-- templates/homepage.tmpl | 2 +- templates/notification.tmpl | 2 +- templates/signin.tmpl | 2 +- templates/thread.tmpl | 2 +- templates/timeline.tmpl | 2 +- templates/user.tmpl | 2 +- 10 files changed, 14 insertions(+), 11 deletions(-) (limited to 'templates') diff --git a/templates/about.tmpl b/templates/about.tmpl index 0b4bea0..6038501 100644 --- a/templates/about.tmpl +++ b/templates/about.tmpl @@ -1,4 +1,4 @@ -{{template "header.tmpl"}} +{{template "header.tmpl" .HeaderData}} {{template "navigation.tmpl" .NavbarData}}
About
diff --git a/templates/emoji.tmpl b/templates/emoji.tmpl index a0cf263..aba4726 100644 --- a/templates/emoji.tmpl +++ b/templates/emoji.tmpl @@ -1,4 +1,4 @@ -{{template "header.tmpl"}} +{{template "header.tmpl" .HeaderData}} {{template "navigation.tmpl" .NavbarData}}
Emojis
diff --git a/templates/error.tmpl b/templates/error.tmpl index d4bd817..0389cdd 100644 --- a/templates/error.tmpl +++ b/templates/error.tmpl @@ -1,4 +1,4 @@ -{{template "header.tmpl"}} +{{template "header.tmpl" .HeaderData}}
Error
{{.}}
diff --git a/templates/header.tmpl b/templates/header.tmpl index 9334e81..8d05014 100644 --- a/templates/header.tmpl +++ b/templates/header.tmpl @@ -3,8 +3,11 @@ - Web - + {{if gt .NotificationCount 0}}({{.NotificationCount}}) {{end}}{{.Title}} + + {{if .CustomCSS}} + + {{end}} diff --git a/templates/homepage.tmpl b/templates/homepage.tmpl index 63e613a..5e8e8a0 100644 --- a/templates/homepage.tmpl +++ b/templates/homepage.tmpl @@ -1,4 +1,4 @@ -{{template "header.tmpl"}} +{{template "header.tmpl" .HeaderData}}
Home
Signin {{template "footer.tmpl"}} diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 259328a..c4f6f28 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -1,4 +1,4 @@ -{{template "header.tmpl"}} +{{template "header.tmpl" .HeaderData}} {{template "navigation.tmpl" .NavbarData}}
Notifications
diff --git a/templates/signin.tmpl b/templates/signin.tmpl index fb14a66..5dd03f6 100644 --- a/templates/signin.tmpl +++ b/templates/signin.tmpl @@ -1,4 +1,4 @@ -{{template "header.tmpl"}} +{{template "header.tmpl" .HeaderData}}
Signin