summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/account.html.ep27
-rw-r--r--templates/layouts/default.html.ep1
2 files changed, 28 insertions, 0 deletions
diff --git a/templates/account.html.ep b/templates/account.html.ep
new file mode 100644
index 0000000..e734ee0
--- /dev/null
+++ b/templates/account.html.ep
@@ -0,0 +1,27 @@
+<h1>Account</h1>
+<div class="row">
+ <table class="striped">
+ <tr>
+ <th scope="row">Name</th>
+ <td><%= get_user_name() %></td>
+ </tr>
+ <tr>
+ <th scope="row">Mail</th>
+ <td>fnord@example.org</td>
+ </tr>
+ <tr>
+ <th scope="row">Registriert am</th>
+ <td>01.01.1970 00:00</td>
+ </tr>
+ </table>
+</div>
+
+<h1>Export</h1>
+
+<div class="row">
+ <div class="col s12">
+ <ul>
+ <li><a href="/a/export.json">Rohdaten</a> (Kein API-Ersatz, das Format kann sich jederzeit ändern)</li>
+ </ul>
+ </div>
+</div>
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index ffbb5ef..264928a 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -22,6 +22,7 @@
<a href="/" class="brand-logo left">travelynx</a>
<ul id="nav-mobile" class="right">
<li class="<%= navbar_class('/a/history') %>"><a href='/a/history' title="History"><i class="material-icons">history</i></a></li>
+ <li class="<%= navbar_class('/a/account') %>"><a href="/a/account" title="Account"><i class="material-icons left">account_circle</i><%= get_user_name() %></a></li>
<li class="<%= navbar_class('/x/about') %>"><a href='/x/about' title="About"><i class="material-icons">info_outline</i></a></li>
</ul>
</div>