goweb-oidc/cmd/server/template/blocks/header.html.tmpl

20 lines
620 B
Cheetah

{{define "header"}}
<div class="columns is-mobile">
<div class="column is-4-tablet is-8-mobile">
<div class="columns is-mobile is-gapless">
<div class="column is-narrow">
<h1 class="is-size-3 title"><a href="{{ .BaseURL }}" rel="Homepage" class="has-text-black">OIDC Test App</a></h1>
</div>
</div>
</div>
<div class="column">
<div class="buttons is-right">
{{if .IDToken}}
<a class="button" href="{{ .BaseURL }}/logout">Logout</a>
{{else}}
<a class="button is-primary" href="{{ .BaseURL }}/login">Login</a>
{{end}}
</div>
</div>
</div>
{{end}}