summaryrefslogtreecommitdiff
path: root/views/header.pug
blob: 454c35a2dd307c632a0394558cfc797fdd022dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
header
	a(href="/")
		img(src="/images/rally-the-troops.svg" width=48 height=48)
	nav
		a(href="/about") About
		if user
			if ENABLE_FORUM
				a(href="/forum") Forum
			a(href="/games/public") Public
			if user.waiting > 0
				a(href="/games/active") Games (#{user.waiting})
			else
				a(href="/games/active") Games
			a(href="/contacts") Friends
			if user.unread > 0
				a(href="/inbox") Inbox (#{user.unread})
			else
				a(href="/inbox") Inbox
			a(href="/profile") Profile (#{user.name})
		else
			a(href="/signup") Signup
			a(href="/login") Login