30 lines
1.2 KiB
Handlebars

<!DOCTYPE html>
<html>
<head>
<title>{{title}}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<script defer src="https://unpkg.com/htmx.org@1.8.6"></script>
</head>
<body class="container">
</br>
<nav class="navbar bg-light-subtle">
<div class="container-fluid navbar-expand-lg">
<div class="navbar-nav">
<a class="nav-link" href='/mdata'>Domov</a>
{{#if session.userId}}
<a class="nav-link" href='/mdata/publish'>Objavi uprasanje</a>
<a class="nav-link" href='/mdata/my'>Moji</a>
<a class="nav-link" href='/users/logout'>Odjava</a>
{{else}}
<a class="nav-link" href='/users/login'>Prijava</a>
<a class="nav-link" href='/users/register'>Registracija</a>
{{/if}}
</div>
</div>
</nav>
</br>
{{{body}}}
</body>
</html>