diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-03 21:46:06 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-03 21:46:06 +0100 |
commit | 833c8878d119610cb25f35d712166dfefbf2f4cf (patch) | |
tree | b24d57959f0623b38acad34e856c2a86b10c491c /templates | |
parent | ad585c3fec9c937f41b60f484aee6aa5fd65c573 (diff) |
add logout link
Diffstat (limited to 'templates')
-rw-r--r-- | templates/login.html.ep | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/login.html.ep b/templates/login.html.ep index 74deaef..3ef8dbc 100644 --- a/templates/login.html.ep +++ b/templates/login.html.ep @@ -1,3 +1,19 @@ +% if (my $user = current_user()) { + <div class="row"> + <div class="col s12"> + <div class="card grey darken-4"> + <div class="card-content white-text"> + <span class="card-title">Hallo, <%= $user->{name} %>!</span> + <p> + Du bist bereits angemeldet. Falls du mehrere Accounts hast + und auf einen anderen wechseln möchtest, musst du dich + vorher <a href="/x/logout">abmelden</a>. + </p> + </div> + </div> + </div> + </div> +% } % if (my $invalid = stash('invalid')) { <div class="row"> <div class="col s12"> |