aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/about.tmpl2
-rw-r--r--templates/emoji.tmpl2
-rw-r--r--templates/error.tmpl2
-rw-r--r--templates/header.tmpl7
-rw-r--r--templates/homepage.tmpl2
-rw-r--r--templates/notification.tmpl2
-rw-r--r--templates/signin.tmpl2
-rw-r--r--templates/thread.tmpl2
-rw-r--r--templates/timeline.tmpl2
-rw-r--r--templates/user.tmpl2
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>