summaryrefslogtreecommitdiff
path: root/views/header.pug
blob: d38696999256998deac51a4ffd5b39953cc29eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
header
	a(href="/")
		if SITE_ICON
			img(src="/images/"+SITE_ICON width=48 height=48)
		else
			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