summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-08 17:59:48 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-08 17:59:48 +0100
commitda4f532fb3f27cb7eac13ec7bad0c8c63618c3e9 (patch)
tree2ff2c390a0d79eba3870330067ccd9d6482896fe /templates
parent6f4a5cef710c8dc3c62b6bc9117414fcd24964d3 (diff)
add logout link to account page
Diffstat (limited to 'templates')
-rw-r--r--templates/account.html.ep44
1 files changed, 30 insertions, 14 deletions
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 @@
<h1>Account</h1>
% my $acc = get_user_data();
<div class="row">
- <table class="striped">
- <tr>
- <th scope="row">Name</th>
- <td><%= $acc->{name} %></td>
- </tr>
- <tr>
- <th scope="row">Mail</th>
- <td><%= $acc->{email} %></td>
- </tr>
- <tr>
- <th scope="row">Registriert am</th>
- <td><%= $acc->{registered_at}->strftime('%d.%m.%Y %H:%M') %></td>
- </tr>
- </table>
+ <div class="col s12">
+ <table class="striped">
+ <tr>
+ <th scope="row">Name</th>
+ <td><%= $acc->{name} %></td>
+ </tr>
+ <tr>
+ <th scope="row">Mail</th>
+ <td><%= $acc->{email} %></td>
+ </tr>
+ <tr>
+ <th scope="row">Registriert am</th>
+ <td><%= $acc->{registered_at}->strftime('%d.%m.%Y %H:%M') %></td>
+ </tr>
+ </table>
+ </div>
+</div>
+<div class="row">
+ <div class="col s1 m1 l3">
+ </div>
+ <div class="col s10 m10 l6 center-align">
+ %= form_for 'logout' => begin
+ %= csrf_field
+ <button class="btn waves-effect waves-light" type="submit" name="action" value="logout">
+ Abmelden
+ </button>
+ %= end
+ </div>
+ <div class="col s1 m1 l3">
+ </div>
</div>
<h1>Export</h1>