modweb/templates/partials/navbar.html

16 lines
499 B
HTML
Raw Permalink Normal View History

2020-11-16 20:19:37 +00:00
<nav class="navbar is-info" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<b>{{ .app.Config.AppName }}</b>
</a>
</div>
<div class="navbar-menu">
2020-11-16 20:19:37 +00:00
{{ if or .user (not .app.AuthSupported) -}}
{{ template "partials/navbar-modules" . }}
2020-11-11 22:48:11 +00:00
{{- end }}
2020-11-16 20:19:37 +00:00
{{ if .app.AuthSupported -}}
{{ template "partials/navbar-login" . }}
{{ end }}
2020-11-11 22:48:11 +00:00
</div>
</nav>