2023-09-23 20:54:44 +02:00
<!doctype html>
<html lang="fr">
2023-09-25 14:26:48 +02:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><% if (page.title) { %><%= page.title %> <% } else { %> DarKou - Simple Gallery <% } %></title>
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="/css/main.css">
<script src="/js/main.js"></script>
</head>
2023-09-23 20:54:44 +02:00
<body class="<%= pagename %>">
<% if ( user ) { %>
2023-09-25 14:26:48 +02:00
<nav class="navbar" aria-label="Navigation principale">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="/img/logo.png" alt="Logo Simple Gallery">
<span>Simple Gallery</span>
</a>
<a role="button" class="navbar-burger" aria-label="Afficher le menu" aria-expanded="false" data-target="navbar">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbar" class="navbar-menu">
<% if ( user ) { %>
<div class="navbar-start">
<div class="navbar-item">
<div class="buttons">
<a class="button is-primary" href="/upload">
<span>
Ajouter une image
</span>
</a>
</div>
</div>
</div>
<% } %>
<div class="navbar-end">
<% if ( user ) { %>
<div class="navbar-item has-dropdown">
<a class="navbar-link">
<span>
<%= user.username %>
</span>
</a>
<div class="navbar-dropdown">
<a class="navbar-item" href="/mon-compte">
Mon compte
</a>
<hr>
<a class="navbar-item" href="/gallery">
Mes images
</a>
</div>
</div>
<% } %>
<div class="navbar-item">
<div class="buttons">
<% if ( !user ) { %>
<a class="button is-primary" href="/connexion">
<strong>Connexion</strong>
</a>
<% } else { %>
<a class="button is-danger" href="/se-deconnecter">
Déconnexion
</a>
<% } %>
</div>
</div>
</div>
</div>
</nav>
<div id="toastr">
<button class="delete" onclick="hideToastr()" aria-label="Masquer la notification"></button>
<span></span>
</div>
2023-09-23 20:54:44 +02:00
<% } %>
2023-09-25 00:31:06 +02:00
<%- include(viewname, {page: page, params: params, query: query, user: user, DateTime: DateTime}) %>
2023-09-25 14:26:48 +02:00
<footer class="footer layout-hero">
<p>
<strong>Simple Images Upload</strong> par <a href="https://www.darkou.link" target="_blank" rel="noopener noreferrer">DarKou</a>.
<br>
Le code source est sous licence <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.fr" target="_blank" rel="noopener noreferrer">CC-BY-NC-SA-4.0</a> et disponible sur <a href="https://git.darkou.fr/dbroqua/simple-images-upload" target="_blank">git.darkou.fr</a>.
<br>
Codé comme de la <span role="img" aria-label="m*rde">💩</span> à Bordeaux.
</p>
</footer>
2023-09-23 20:54:44 +02:00
</body>
</html>