2016-02-15 10:02:05 +01:00
|
|
|
<nav class="navbar navbar-default navbar-fixed-top">
|
|
|
|
<div class="container">
|
2016-02-15 14:52:14 +01:00
|
|
|
<div class="navbar-header">
|
|
|
|
<a class="navbar-brand" href="@{HomeR}">Gonito.net
|
|
|
|
$maybe user <- maybeUser
|
2016-02-15 10:02:05 +01:00
|
|
|
<ul class="nav navbar-nav">
|
2016-03-14 21:24:33 +01:00
|
|
|
|
2016-02-15 10:02:05 +01:00
|
|
|
<li><a href="@{HomeR}">_{MsgHome}</a>
|
2016-12-03 13:31:20 +01:00
|
|
|
<li><a href="@{Presentation4RealR}">_{MsgAbout}</a>
|
2017-02-18 10:26:02 +01:00
|
|
|
<li><a href="@{ListChallengesR}">_{MsgListChallenges}</a>
|
2017-02-19 14:05:56 +01:00
|
|
|
<li><a href="@{TagsR}">_{MsgListTags}</a>
|
2016-02-15 10:02:05 +01:00
|
|
|
$if userIsAdmin $ entityVal user
|
2016-02-15 14:52:14 +01:00
|
|
|
<li><a href="@{CreateChallengeR}">_{MsgCreateChallenge}</a>
|
2017-02-18 10:26:02 +01:00
|
|
|
<li><a href="@{CreateResetLinkR}">_{MsgCreateResetLink}</a>
|
2016-03-14 21:24:33 +01:00
|
|
|
|
2016-02-15 14:52:14 +01:00
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="@{AuthR LoginR}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">#{userIdent $ entityVal user}<span class="caret"></span>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="@{YourAccountR}">_{MsgYourAccount}</a></li>
|
|
|
|
<li><a href="@{AuthR LogoutR}">_{MsgLogOut}</a></li>
|
2016-03-14 21:24:33 +01:00
|
|
|
$nothing
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li><a href="@{HomeR}">_{MsgHome}</a>
|
2016-12-03 13:31:20 +01:00
|
|
|
<li><a href="@{Presentation4RealR}">_{MsgAbout}</a>
|
2016-03-14 21:24:33 +01:00
|
|
|
<li><a href="@{ListChallengesR}">_{MsgListChallenges}</a>
|
2017-02-19 14:05:56 +01:00
|
|
|
<li><a href="@{TagsR}">_{MsgListTags}</a>
|
2016-03-14 21:24:33 +01:00
|
|
|
|
2016-02-15 14:52:14 +01:00
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li><a href="@{AuthR LoginR}">log in</a>
|
2016-03-14 21:24:33 +01:00
|
|
|
|
2015-08-20 22:33:38 +02:00
|
|
|
$maybe msg <- mmsg
|
2015-11-11 13:25:09 +01:00
|
|
|
<div #message .alert .alert-warning><a href="#" class="close" data-dismiss="alert">×</a> #{msg}
|
2016-02-15 14:52:14 +01:00
|
|
|
|
2015-08-20 22:33:38 +02:00
|
|
|
^{widget}
|