summaryrefslogtreecommitdiffstats
path: root/templates/main-menu.html
blob: ea32b1d3d0758e7fce0c7fc246305aa472c30b43 (plain) (blame)
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
28
29
30
31
32
33
34
35
36
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="?do=Main"><img src="/img/bwLehrpool_198x46.png" alt="{{suite}}"></a>
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				{{#admin}}
				<li><a href="?do=AddUser">AddUser</a></li>
				<li><a href="?do=images">Manage Images</a></li>
				{{/admin}}
			</ul>
			<ul class="nav navbar-nav navbar-right">
				{{#user}}
				<li>
					<form method="post" action="?do=Logout">
						<input type="hidden" name="token" value="{{token}}">
						<input type="hidden" name="action" value="logout">
						<b>{{user}}</b>
						<button class="btn btn-default btn-xs" type="submit">Abmelden</button>
					</form>
				</li>
				{{/user}}
				{{^user}}
				<li><a href="?do=Login">Anmelden</a></li>
				{{/user}}
			</ul>
		</div>
	</div>
</div>