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

20 lines
618 B
Cheetah
Raw Permalink 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">
2022-08-10 11:11:22 +02:00
<h1 class="is-size-3 title"><a href="{{ .BaseURL }}" rel="Homepage" class="has-text-black">OIDC Tester</a></h1>
2020-05-20 10:43:12 +02:00
</div>
</div>
</div>
<div class="column">
<div class="buttons is-right">
2020-05-20 13:06:04 +02:00
{{if .IDToken}}
<a class="button" href="{{ .BaseURL }}/logout">Logout</a>
2020-05-20 13:06:04 +02:00
{{else}}
<a class="button is-primary" href="{{ .BaseURL }}/login">Login</a>
2020-05-20 13:06:04 +02:00
{{end}}
2020-05-20 10:43:12 +02:00
</div>
</div>
</div>
{{end}}