From da4f532fb3f27cb7eac13ec7bad0c8c63618c3e9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 8 Mar 2019 17:59:48 +0100 Subject: add logout link to account page --- templates/account.html.ep | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) (limited to 'templates/account.html.ep') diff --git a/templates/account.html.ep b/templates/account.html.ep index c3f24f8..dcb53ad 100644 --- a/templates/account.html.ep +++ b/templates/account.html.ep @@ -1,20 +1,36 @@

Account

% my $acc = get_user_data();
- - - - - - - - - - - - - -
Name<%= $acc->{name} %>
Mail<%= $acc->{email} %>
Registriert am<%= $acc->{registered_at}->strftime('%d.%m.%Y %H:%M') %>
+
+ + + + + + + + + + + + + +
Name<%= $acc->{name} %>
Mail<%= $acc->{email} %>
Registriert am<%= $acc->{registered_at}->strftime('%d.%m.%Y %H:%M') %>
+
+
+
+
+
+
+ %= form_for 'logout' => begin + %= csrf_field + + %= end +
+
+

Export

-- cgit v1.2.3