You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
website/views/base.html

61 lines
1.5 KiB
HTML

{{define "base"}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ template "title" . }}</title>
<!-- TODO: Da cambiare molto probabilmente -->
<link rel="icon" href="/assets/icons/icons8-electronics-100.png">
<link rel="stylesheet" href="/assets/style.css">
</head>
<body>
<nav>
<!-- Site -->
<div class="nav-item">
4 years ago
<a href="/">PHC</a>
</div>
<div class="nav-item">
<a href="/utenti">Utenti</a>
</div>
<div class="nav-item">
4 years ago
<a href="/blog">Notizie</a>
</div>
<div class="nav-item">
4 years ago
<a href="https://git.phc.dm.unipi.it">Git</a>
</div>
<div class="nav-item">
4 years ago
<a href="https://forum.phc.dm.unipi.it">Forum</a>
</div>
<!-- Spacing -->
<div class="hfill"></div>
<!-- User -->
{{if .User}}
<div class="nav-item">
4 years ago
<a href="/settings">@{{ .User }}</a>
</div>
{{else}}
<div class="nav-item">
<a href="/login">Accedi</a>
</div>
{{end}}
</nav>
{{ template "body" . }}
<footer>
<div class="footer-item">
macchinisti@poisson.phc.dm.unipi.it
</div>
<div class="footer-item">
Icone da <a target="_blank" href="https://icons8.it">Icons8</a>
</div>
</footer>
</body>
</html>
{{end}}