Skip to content

Commit

Permalink
add logout button
Browse files Browse the repository at this point in the history
fixes #29
  • Loading branch information
koebi authored Dec 27, 2016
2 parents 97a2f83 + 2f563cc commit eb2ff7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">{{ .Title }}</span>
<!-- Add a spacer to align logout to the right -->
<div class="mdl-layout-spacer"></div>
{{if ne .Title "Login"}}
<a class="mdl-navigation__link" href="/logout.html">Logout</a>
{{end}}
</div>
</header>
<main class="mdl-layout__content">
Expand Down

0 comments on commit eb2ff7b

Please sign in to comment.