diff --git a/public/next.svg b/public/next.svg new file mode 100644 index 0000000..ec2d024 --- /dev/null +++ b/public/next.svg @@ -0,0 +1,64 @@ + + + + diff --git a/public/prev.svg b/public/prev.svg new file mode 100644 index 0000000..1c08f09 --- /dev/null +++ b/public/prev.svg @@ -0,0 +1,64 @@ + + + + diff --git a/routes/init.js b/routes/init.js index 890bc46..d8cc12a 100644 --- a/routes/init.js +++ b/routes/init.js @@ -78,7 +78,8 @@ function initr(req, res, next) { let headerCtx = [ { link: '/walls/get/hub/main/0', icon: '/icon.svg', name: 'DervNet' }, { link: '/walls/list', icon: '/walls.svg', name: 'Explore' }, - { link: '/you/logout', icon: '/logout.svg', name: 'Leave' } // fix icon + { link: '/users/' + (res.auth ? res.auth.username : ''), icon: '/login.svg', name: 'You' }, + { link: '/you/logout', icon: '/logout.svg', name: 'Leave' } ]; if (!res.auth || !res.auth.valid) { diff --git a/views/comment.ejs b/views/comment.ejs index 696b836..6a1b776 100644 --- a/views/comment.ejs +++ b/views/comment.ejs @@ -18,5 +18,5 @@
Posted on <%= new Date(date).toISOString() %>
<% } %> <%- include ('vblock.ejs', {link: `/${type}/${id}`, icon: '/icon.svg', name: 'Original'}) %> - <%- include ('vblock.ejs', {link: `/walls/get/${type}/${id}/0`, icon: '/icon.svg', name: 'Replies'}) %> + <%- include ('vblock.ejs', {link: `/walls/get/${type}/${id}/0`, icon: '/walls.svg', name: 'Replies'}) %> \ No newline at end of file diff --git a/views/replies.ejs b/views/replies.ejs index 556e2eb..a178bd7 100644 --- a/views/replies.ejs +++ b/views/replies.ejs @@ -4,8 +4,8 @@

Replies

- <%- include ('vblock.ejs', {link: `${Math.max(page - 1,0)}`, icon: '/icon.svg', name: 'Previous'}) %> - <%- include ('vblock.ejs', {link: `${page * 1 + 1}`, icon: '/icon.svg', name: 'Next'}) %> + <%- include ('vblock.ejs', {link: `${Math.max(page - 1,0)}`, icon: '/prev.svg', name: 'Previous'}) %> + <%- include ('vblock.ejs', {link: `${page * 1 + 1}`, icon: '/next.svg', name: 'Next'}) %>
<% if (page == 0) { %> <%- include('form.ejs', { diff --git a/views/user.ejs b/views/user.ejs index bbd7108..7eb8c29 100644 --- a/views/user.ejs +++ b/views/user.ejs @@ -3,7 +3,8 @@ <%= username %> - A very cool person! +
A very cool person!
+ <%- include ('vblock.ejs', {link: `/walls/get/users/${username}/0`, icon: '/icon.svg', name: 'Replies'}) %> <% if (isYou) { %>