diff options
author | r <r@freesoftwareextremist.com> | 2019-12-25 16:38:47 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-25 16:38:47 +0000 |
commit | 656ff3931cf86c50a0b54da43cbf5f68344c58e0 (patch) | |
tree | 611800a2047eb75b62460f0c8a2ec18b0d9ce61a /templates | |
parent | bde2c03495c0e032415e8bec484fcbbcb9f4c644 (diff) | |
download | bloat-656ff3931cf86c50a0b54da43cbf5f68344c58e0.tar.gz bloat-656ff3931cf86c50a0b54da43cbf5f68344c58e0.zip |
Update header template and add option for custom css
Diffstat (limited to 'templates')
-rw-r--r-- | templates/about.tmpl | 2 | ||||
-rw-r--r-- | templates/emoji.tmpl | 2 | ||||
-rw-r--r-- | templates/error.tmpl | 2 | ||||
-rw-r--r-- | templates/header.tmpl | 7 | ||||
-rw-r--r-- | templates/homepage.tmpl | 2 | ||||
-rw-r--r-- | templates/notification.tmpl | 2 | ||||
-rw-r--r-- | templates/signin.tmpl | 2 | ||||
-rw-r--r-- | templates/thread.tmpl | 2 | ||||
-rw-r--r-- | templates/timeline.tmpl | 2 | ||||
-rw-r--r-- | templates/user.tmpl | 2 |
10 files changed, 14 insertions, 11 deletions
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}} <div class="page-title"> About </div> 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}} <div class="page-title"> Emojis </div> 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}} <div class="page-title"> Error </div> <div class="error-text"> {{.}} </div> <div> 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 @@ <head> <meta charset='utf-8'> <meta content='width=device-width, initial-scale=1' name='viewport'> - <title> Web </title> - <link rel="stylesheet" href="/static/main.css" /> + <title>{{if gt .NotificationCount 0}}({{.NotificationCount}}) {{end}}{{.Title}}</title> + <link rel="stylesheet" href="/static/main.css"> + {{if .CustomCSS}} + <link rel="stylesheet" href="{{.CustomCSS}}"> + {{end}} <link rel="stylesheet" href="/static/fonts/fork-awesome.css"> </head> <body> 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}} <div class="page-title"> Home </div> <a href="/signin"> Signin </a> {{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}} <div class="page-title"> Notifications </div> 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}} <div class="page-title"> Signin </div> <form class="signin-form" action="/signin" method="post"> diff --git a/templates/thread.tmpl b/templates/thread.tmpl index afb307b..7ec0e94 100644 --- a/templates/thread.tmpl +++ b/templates/thread.tmpl @@ -1,4 +1,4 @@ -{{template "header.tmpl"}} +{{template "header.tmpl" .HeaderData}} {{template "navigation.tmpl" .NavbarData}} <div class="page-title"> Thread </div> diff --git a/templates/timeline.tmpl b/templates/timeline.tmpl index 5bff2d0..b688501 100644 --- a/templates/timeline.tmpl +++ b/templates/timeline.tmpl @@ -1,4 +1,4 @@ -{{template "header.tmpl"}} +{{template "header.tmpl" .HeaderData}} {{template "navigation.tmpl" .NavbarData}} <div class="page-title"> {{.Title}} </div> diff --git a/templates/user.tmpl b/templates/user.tmpl index c7aa1e8..fa19338 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -1,4 +1,4 @@ -{{template "header.tmpl"}} +{{template "header.tmpl" .HeaderData}} {{template "navigation.tmpl" .NavbarData}} <div class="page-title"> User </div> |