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

20 lines
579 B
Cheetah
Raw Normal View History

2020-05-20 10:43:12 +02:00
{{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="/" rel="Homepage" class="has-text-black">OIDC Test App</a></h1>
</div>
</div>
</div>
<div class="column">
<div class="buttons is-right">
2020-05-20 13:06:04 +02:00
{{if .IDToken}}
2020-05-20 10:43:12 +02:00
<a class="button" href="/logout">Logout</a>
2020-05-20 13:06:04 +02:00
{{else}}
<a class="button is-primary" href="/login">Login</a>
{{end}}
2020-05-20 10:43:12 +02:00
</div>
</div>
</div>
{{end}}