summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-06 11:48:08 -0400
committerJules Laplace <jules@okfoc.us>2015-09-06 11:48:08 -0400
commitabe12120374d07cf5f87192964a9d1c10741e475 (patch)
tree48a5c09e51863fe1508e7404cec2a9340e29f686 /views
parent5b1461e7b4d32e96eaa8386b4b7ea96ec4b18d5a (diff)
header
Diffstat (limited to 'views')
-rw-r--r--views/pages/index.ejs2
-rw-r--r--views/partials/header.ejs22
-rw-r--r--views/partials/scripts.ejs1
3 files changed, 23 insertions, 2 deletions
diff --git a/views/pages/index.ejs b/views/pages/index.ejs
index 35143cb..070d1ff 100644
--- a/views/pages/index.ejs
+++ b/views/pages/index.ejs
@@ -39,7 +39,7 @@
<a href="/profile/{{username}}">{{username}}</a>
{{privacy_dot}}
</td>
- <td>
+ <td class="{{color}}">
<a href="/details/{{id}}">{{title}}</a>
</td>
<td class="{{age_class}}">
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
diff --git a/views/partials/scripts.ejs b/views/partials/scripts.ejs
index fa03f2b..8a2e33a 100644
--- a/views/partials/scripts.ejs
+++ b/views/partials/scripts.ejs
@@ -15,6 +15,7 @@
<script src="/assets/js/lib/views/login/login.js"></script>
<script src="/assets/js/lib/views/index/index.js"></script>
+<script src="/assets/js/lib/views/index/lastlog.js"></script>
<script src="/assets/js/lib/views/index/hootbox.js"></script>
<script src="/assets/js/lib/views/index/threadbox.js"></script>