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.
88 lines
2.9 KiB
HTML
88 lines
2.9 KiB
HTML
3 years ago
|
{{ define "navbar" }}
|
||
|
<nav>
|
||
|
<!-- Site -->
|
||
|
<div class="nav-logo">
|
||
|
<a class="nav-element" href="/">
|
||
|
<img src="/public/images/logo-circuit-board.svg" alt="phc-logo">
|
||
|
</a>
|
||
|
</div>
|
||
|
<div class="nav-main">
|
||
|
<div class="nav-item">
|
||
|
<a class="nav-element" href="/utenti">Utenti</a>
|
||
|
</div>
|
||
|
<div class="nav-item dropdown">
|
||
|
<div class="name">
|
||
|
<a class="nav-element" href="/progetti">
|
||
|
<div class="icon">
|
||
|
<i class="fas fa-chevron-down"></i>
|
||
|
</div>
|
||
|
<div class="label">
|
||
|
Progetti
|
||
|
</div>
|
||
|
</a>
|
||
|
</div>
|
||
|
<div class="nav-items">
|
||
|
<div class="nav-item">
|
||
|
<a class="nav-element" href="{{ .Config.GitUrl }}">Gitea</a>
|
||
|
</div>
|
||
|
<div class="nav-item">
|
||
3 years ago
|
<a class="nav-element" href="{{ .Config.ChatUrl }}">Zulip</a>
|
||
3 years ago
|
</div>
|
||
|
<div class="nav-item">
|
||
|
<a class="nav-element" href="/seminari">Seminari</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="nav-item dropdown">
|
||
|
<div class="name">
|
||
|
<a class="nav-element" href="/risorse">
|
||
|
<div class="icon">
|
||
|
<i class="fas fa-chevron-down"></i>
|
||
|
</div>
|
||
|
<div class="label">
|
||
|
Risorse
|
||
|
</div>
|
||
|
</a>
|
||
|
</div>
|
||
|
<div class="nav-items">
|
||
|
<div class="nav-item">
|
||
|
<a class="nav-element" href="/news">News</a>
|
||
|
</div>
|
||
|
<div class="nav-item">
|
||
3 years ago
|
<a class="nav-element" href="/appunti">Appunti</a>
|
||
|
</div>
|
||
|
<div class="nav-item">
|
||
3 years ago
|
<a class="nav-element" href="/guide">Guide</a>
|
||
|
</div>
|
||
|
<div class="nav-item">
|
||
|
<a class="nav-element" href="/link">Link Utili</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="nav-item">
|
||
|
<a class="nav-element" href="/storia">Storia</a>
|
||
|
</div>
|
||
3 years ago
|
<!-- <div class="nav-item">
|
||
3 years ago
|
<a class="nav-element" href="/about">About</a>
|
||
3 years ago
|
</div> -->
|
||
3 years ago
|
|
||
|
<div class="nav-item filler"></div>
|
||
|
|
||
|
<!-- User Related -->
|
||
|
<div class="nav-item">
|
||
|
<div id="toggle-dark-mode" class="nav-button">
|
||
|
<i class="fas fa-moon"></i>
|
||
|
</div>
|
||
|
</div>
|
||
|
{{if .User}}
|
||
|
<div class="nav-item">
|
||
2 years ago
|
<a class="nav-element" href="/profilo">@{{ .User.Username }}</a>
|
||
3 years ago
|
</div>
|
||
|
{{else}}
|
||
|
<div class="nav-item">
|
||
|
<a class="nav-element" href="/login">Accedi</a>
|
||
|
</div>
|
||
|
{{end}}
|
||
|
</div>
|
||
|
</nav>
|
||
|
{{ end }}
|