2019-10-05 14:53:14 +02:00
|
|
|
$maybe banner <- mBanner
|
|
|
|
<div class="header-row" id="header-row" style="padding: 0px; overflow:hidden;">
|
|
|
|
<div class="container-fluid" style="padding: 0px;">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<img src="#{banner}">
|
|
|
|
<nav class="navbar navbar-default navbar-fixed-top">
|
2018-09-08 14:17:40 +02:00
|
|
|
<div class="container-fluid">
|
2016-02-15 14:52:14 +01:00
|
|
|
<div class="navbar-header">
|
2018-09-08 14:17:40 +02:00
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
|
|
<span class="icon-bar">
|
|
|
|
<span class="icon-bar">
|
|
|
|
<span class="icon-bar">
|
2016-02-15 14:52:14 +01:00
|
|
|
<a class="navbar-brand" href="@{HomeR}">Gonito.net
|
2018-06-01 16:30:35 +02:00
|
|
|
$maybe location <- appLocation $ appSettings master
|
|
|
|
$if location /= ""
|
|
|
|
\@#{location}
|
2016-02-15 14:52:14 +01:00
|
|
|
$maybe user <- maybeUser
|
2019-10-05 18:47:07 +02:00
|
|
|
<ul class="nav navbar-nav navbar-top navbar-collapse collapse">
|
2018-04-07 18:51:58 +02:00
|
|
|
<li class="dropdown">
|
|
|
|
<a id="about" href="#" class="dropdown-toggle" data-toggle="dropdown">_{MsgAbout}<span class="caret"></span>
|
|
|
|
<ul class="dropdown-menu">
|
2019-09-23 23:16:46 +02:00
|
|
|
<li><a href="@{PresentationPSNC2019R}">_{MsgPresentation}</a>
|
2019-11-07 14:31:10 +01:00
|
|
|
<li><a href="@{WritingPapersWithGonitoR}">_{MsgWritingPapers}</a>
|
2018-04-07 18:51:58 +02:00
|
|
|
<li><a href="@{GonitoInClassR}">_{MsgGonitoInClass}</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>
|
2017-02-26 21:40:38 +01:00
|
|
|
<li><a href="@{AchievementsR}">_{MsgAchievements}</a>
|
2018-09-14 15:44:20 +02:00
|
|
|
<li><a href="@{DashboardR}">_{MsgDashboard}</a>
|
2016-02-15 10:02:05 +01:00
|
|
|
$if userIsAdmin $ entityVal user
|
2018-04-07 14:15:47 +02:00
|
|
|
<li class="dropdown">
|
|
|
|
<a id="admin" href="#" class="dropdown-toggle" data-toggle="dropdown">_{MsgManage}<span class="caret"></span>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="@{CreateChallengeR}">_{MsgCreateChallenge}</a>
|
|
|
|
<li><a href="@{CreateResetLinkR}">_{MsgCreateResetLink}</a>
|
|
|
|
<li><a href="@{ExtraPointsR}">_{MsgAddExtraPoints}</a>
|
2019-06-15 12:21:41 +02:00
|
|
|
<li><a href="@{CoursesITeachR}">_{MsgCoursesITeach}</a>
|
2019-03-20 16:31:08 +01:00
|
|
|
<li><a href="@{ListArchivedChallengesR}">_{MsgShowArchivedChallenges}</a>
|
2016-03-14 21:24:33 +01:00
|
|
|
|
2018-09-08 14:17:40 +02:00
|
|
|
<ul class="nav navbar-nav navbar-collapse collapse navbar-right">
|
2016-02-15 14:52:14 +01:00
|
|
|
<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>
|
2017-05-15 14:25:54 +02:00
|
|
|
<li><a href="@{MyScoreR}">_{MsgYourScore}</a></li>
|
2016-02-15 14:52:14 +01:00
|
|
|
<li><a href="@{AuthR LogoutR}">_{MsgLogOut}</a></li>
|
2016-03-14 21:24:33 +01:00
|
|
|
$nothing
|
2019-10-05 18:51:50 +02:00
|
|
|
<ul class="nav navbar-nav navbar-top navbar-collapse collapse">
|
2019-11-07 14:31:10 +01:00
|
|
|
<li class="dropdown">
|
|
|
|
<a id="about" href="#" class="dropdown-toggle" data-toggle="dropdown">_{MsgAbout}<span class="caret"></span>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="@{PresentationPSNC2019R}">_{MsgPresentation}</a>
|
|
|
|
<li><a href="@{WritingPapersWithGonitoR}">_{MsgWritingPapers}</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>
|
2018-09-14 15:44:20 +02:00
|
|
|
<li><a href="@{DashboardR}">_{MsgDashboard}</a>
|
2016-03-14 21:24:33 +01:00
|
|
|
|
2018-09-09 19:42:17 +02:00
|
|
|
<ul class="nav navbar-nav navbar-collapse collapse navbar-right">
|
2016-02-15 14:52:14 +01:00
|
|
|
<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
|
|
|
|
2019-10-05 14:53:14 +02:00
|
|
|
$maybe rightPanel <- mRightPanel
|
|
|
|
<div class="pull-right">^{rightPanel}
|
|
|
|
|
2015-08-20 22:33:38 +02:00
|
|
|
^{widget}
|