Add a logout button
Add a button so users know if they're logged in.
This commit is contained in:
parent
4913e7765e
commit
eac2a38c6c
|
@ -8,7 +8,11 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<a href="/_paste" class="button column column-0">New paste</a>
|
<a href="/_paste" class="button column column-0">New paste</a>
|
||||||
<a href="/_login" class="button column column-0">Log in</a>
|
<% if loggedin then %>
|
||||||
|
<a href="/_login" class="button column column-0">Log in</a>
|
||||||
|
<% else %>
|
||||||
|
<a href="/_logout" class="button column column-0">Log out</a>
|
||||||
|
<% end %>
|
||||||
<a href="/_claim" class="button column column-0">Register</a>
|
<a href="/_claim" class="button column column-0">Register</a>
|
||||||
<form action="https://<%= domain %>/_search" method="get" class="search column row">
|
<form action="https://<%= domain %>/_search" method="get" class="search column row">
|
||||||
<input class="column" type="text" name="q" placeholder="+greentext -dotr +hits>20"/>
|
<input class="column" type="text" name="q" placeholder="+greentext -dotr +hits>20"/>
|
||||||
|
|
Loading…
Reference in New Issue