summaryrefslogtreecommitdiff
path: root/views/header.pug
blob: e6cdeeb9fae255d3bd1a5ada73d789998e289121 (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
26
27
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
			if ENABLE_TOURNAMENTS
				a(href="/tm/list") Tournaments
			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="/message/inbox") Inbox (#{user.unread})
			else
				a(href="/message/inbox") Inbox
			a(href="/profile") Profile (#{user.name})
		else
			a(href="/signup") Signup
			a(href="/login") Login