modweb/templates/partials/navbar.html

15 lines
499 B
HTML

<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">
{{ if or .user (not .app.AuthSupported) -}}
{{ template "partials/navbar-modules" . }}
{{- end }}
{{ if .app.AuthSupported -}}
{{ template "partials/navbar-login" . }}
{{ end }}
</div>
</nav>