diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-06 11:48:08 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-06 11:48:08 -0400 |
| commit | abe12120374d07cf5f87192964a9d1c10741e475 (patch) | |
| tree | 48a5c09e51863fe1508e7404cec2a9340e29f686 /views | |
| parent | 5b1461e7b4d32e96eaa8386b4b7ea96ec4b18d5a (diff) | |
header
Diffstat (limited to 'views')
| -rw-r--r-- | views/pages/index.ejs | 2 | ||||
| -rw-r--r-- | views/partials/header.ejs | 22 | ||||
| -rw-r--r-- | views/partials/scripts.ejs | 1 |
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> |
