goweb-oidc/cmd/server/template/blocks/header.html.tmpl
2022-08-10 11:11:22 +02:00

20 lines
618 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 Tester</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}}