guichet/templates/layout.html

97 lines
3.9 KiB
HTML
Raw Normal View History

2020-02-09 15:44:18 +01:00
<!doctype html>
<html>
2023-07-21 16:03:43 +02:00
2020-02-09 15:44:18 +01:00
<head>
<meta charset="utf-8">
2020-02-09 16:46:26 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
2023-07-21 15:40:14 +02:00
2023-07-21 16:03:43 +02:00
<link rel="stylesheet" type="text/css" href="/static/fonts/lack/stylesheet.css" />
2023-07-21 15:59:45 +02:00
<link rel="stylesheet" type="text/css" href="/static/fonts/fengardoneue/font.css" />
<link rel="stylesheet" type="text/css" href="/static/css/lesgv/faire-ma-page.css" />
2023-07-21 15:55:52 +02:00
<link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css">
2023-07-21 15:59:45 +02:00
<link rel="stylesheet" type="text/css" href="/static/css/lesgv/burger.css" />
<link rel="stylesheet" type="text/css" href="/static/css/lesgv-colors.css" />
<link rel="stylesheet" type="text/css" href="/static/css/lesgv.css" />
2023-07-23 18:55:48 +02:00
2020-02-09 16:46:26 +01:00
2023-07-27 15:43:24 +02:00
<title>{{ .Common.WebsiteName }} > {{template "title" .}}</title>
2020-02-09 15:44:18 +01:00
</head>
2023-07-21 16:03:43 +02:00
2020-02-09 15:44:18 +01:00
<body>
<div class="container mb-4">
2023-07-27 15:43:24 +02:00
<h1><a href="/">{{ .Common.WebsiteName }} > {{ template "title" .}}</a></h1>
2023-07-21 15:50:53 +02:00
<nav role="navigation">
<div id="menuToggle">
<!--
A fake / hidden checkbox is used as click reciever,
so you can use the :checked selector on it.
-->
2023-07-21 16:03:43 +02:00
<input type="checkbox" id="menu-checkbox" />
2023-07-21 15:50:53 +02:00
<!--
Some spans to act as a hamburger.
They are acting like a real hamburger,
not that McDonalds stuff.
-->
2023-07-21 16:03:43 +02:00
<div class="burger">
<span></span>
<span></span>
<span></span>
</div>
2023-07-21 15:50:53 +02:00
<!--
Too bad the menu has to be inside of the button
but hey, it's pure CSS magic.
-->
<ul id="menu">
2023-07-25 17:41:16 +02:00
<li><a href="https://www.lesgrandsvoisins.com">Les Grands Voisins (.com)</a>&nbsp;&gt;&nbsp;</li>
2023-07-24 10:36:34 +02:00
{{template "admenu" .}}
2023-07-25 17:41:16 +02:00
<li><a href="#">Les Outils</a><ul class="submenu">
2023-07-24 10:36:34 +02:00
<li><a href="https://www.lesgrandsvoisins.com/les-outils/">Les Outils</a></li>
<li><a href="https://www.avmeet.com">AVMeet.com</a></li>
<li><a href="https://mail.lesgrandsvoisins.com/SOGo/">Mail, Cal., Contacts</a></li>
2023-07-24 10:36:34 +02:00
<li><a href="https://wiki.lesgrandsvoisins.com">Wiki</a></li>
2023-07-25 16:12:06 +02:00
<li><a href="https://www.lesgrandsvoisins.com/admin">Editer le site web</a></li>
<li><a href="https://www.lesgrandsvoisins.com/admin">Editer le blog</a></li>
2023-07-24 10:36:34 +02:00
</ul></li>
2023-07-25 21:35:22 +02:00
{{if .Common.CanAdmin}}
2023-07-25 15:53:57 +02:00
<li>&lt;&nbsp;<a href="#">Administration</a>
2023-07-24 11:01:09 +02:00
<ul class="submenu">
2023-07-26 08:31:25 +02:00
<!-- <li><a href="/admin/activate">Administrer LDAP</a> -->
<li><a href="/admin/activate">Activer des Utilisateur·ices</a></li>
<li><a href="/admin/users">Utilisateur·ices</a></li>
<!-- <li><a href="/admin/groups">Groupes</a></li> -->
2023-07-24 11:01:09 +02:00
</ul>
</li>
{{end}}
2023-07-24 10:47:30 +02:00
<li>&lt;&nbsp;<a href="#">Compte</a>
2023-07-21 16:03:43 +02:00
<ul class="submenu">
2023-07-25 21:35:22 +02:00
{{if .Common.LoggedIn}}
2023-07-26 08:31:25 +02:00
<li><a href="/session/logout">Se déconnecter</a></li>
2023-07-24 10:52:50 +02:00
<li><a href="/">Tableau de bord</a></li>
2023-07-26 08:31:25 +02:00
<li><a href="/user">Modifier mon profil</a></li>
2023-07-24 10:52:50 +02:00
<li><a href="/passwd">Modifier mon mot de passe</a></li>
{{else}}
2023-07-24 16:28:22 +02:00
<li><a href="/">Se connecter</a></li>
2023-07-26 08:31:25 +02:00
<li><a href="/passwd/lost">Mal de passe oublié</a></li>
<li><a href="/user/new">S'enregistrer</a></li>
2023-07-24 10:52:50 +02:00
{{end}}
</ul></li>
2023-07-23 18:43:19 +02:00
<li> &nbsp;&lt;&nbsp;<a href="#" class="jour-nuit" id="jour-nuit">Jour et nuit</a></li>
2023-07-21 15:50:53 +02:00
</ul>
2023-07-23 16:56:16 +02:00
2023-07-21 15:50:53 +02:00
</div>
</nav>
2023-07-21 16:03:43 +02:00
2020-02-09 16:46:26 +01:00
<hr />
2020-02-09 15:44:18 +01:00
{{template "body" .}}
</div>
2023-04-18 19:37:51 +02:00
<script src="/static/javascript/jquery.slim.min.js"></script>
<script src="/static/javascript/bootstrap.bundle.min.js"></script>
2023-07-17 12:15:13 +02:00
<script src="/static/javascript/lesgv.js"></script>
2023-07-21 16:55:47 +02:00
<script src="/static/javascript/burger.js"></script>
2023-07-21 15:54:17 +02:00
<script src="/static/javascript/journuit.js"></script>
2020-02-09 15:44:18 +01:00
</body>
2023-07-21 16:03:43 +02:00
</html>