summaryrefslogtreecommitdiff
path: root/views/partials/header.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/partials/header.ejs')
-rw-r--r--views/partials/header.ejs22
1 files changed, 21 insertions, 1 deletions
diff --git a/views/partials/header.ejs b/views/partials/header.ejs
index 0b2c5c5..799040f 100644
--- a/views/partials/header.ejs
+++ b/views/partials/header.ejs
@@ -9,4 +9,24 @@
<h1><%= title %></h1>
-<hr> \ No newline at end of file
+<hr>
+
+<% if (show_header) { %>
+ <div id="menu">
+ <span class="lastlog">
+ <script class="template" type="text/html">
+ <a href="/profile/{{username}}">{{username}}</a>
+ [{{age}}]
+ </script>
+ </span>
+ <span class="links">
+ <a href="/index">home</a> |
+ <a href="/search">search</a> |
+ <a href="/post">post</a> |
+ <a href="/inbox">inbox</a> |
+ <a href="/message">message</a> |
+ <a href="/profile">profile</a> |
+ <a href="/logout">logout</a>
+ </span>
+ </div>
+<% } %> \ No newline at end of file