<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="/">Data House</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li
					{{if .IsViewTemp}}
						class="active"
					{{end}}
				><a href="/view/temp">Temperatures</a></li>

				<li
					{{if .IsViewRelay}}
						class="active"
					{{end}}
				><a href="/view/relay">Relais</a></li>

				<!-- <li
					{{if .IsViewElec}}
						class="active"
					{{end}}
				><a href="/view/elec">Consommation electrique</a></li> -->
			</ul>
			<ul class="nav navbar-nav navbar-right">
				{{if .IsAuthentificated}}
				<li
					{{if .IsUser}}
						class="active"
					{{end}}
				><a href="/user">Utilisateur</a></li>
				{{end}}
				<li
					{{if .IsSensor}}
						class="active"
					{{end}}
				><a href="/sensors">Capteurs</a></li>
			</ul>
		</div>
	</div>
</nav>
