blob: 3b59e6d2a91e885e44b4e70a4d80fcde5a192f34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
mixin header(user)
- var viewQuery = 'view=' + (query && query.view ? query.view : 'compact')
div.header
div.header-item
a(href=`/?${viewQuery}`) home
div.header-item
a(href=`/r/all?${viewQuery}`) all
div.header-item
a(href=`/search?${viewQuery}`) search
div.header-item
a(href=`/subs?${viewQuery}`) subs
if user
div.header-item
a(href=`/dashboard?${viewQuery}`) #{user.username}
|
a(href='/logout') (logout)
else
div.header-item
a(href=`/login`) login
|