summaryrefslogtreecommitdiff
path: root/templates/account.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-20 19:15:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-20 19:15:21 +0200
commit1dc04eb45ad9d7208cbfa1d7eb046861ff43e0c2 (patch)
tree4ca2a48c1cee83c71f4a06c80914ee191ec3c9b3 /templates/account.html.ep
parent531cb95c1773fe459a2ef4c9f2adc8d89e75a62d (diff)
show journey suggestions on departure board as well1.6.0
Diffstat (limited to 'templates/account.html.ep')
-rw-r--r--templates/account.html.ep16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/account.html.ep b/templates/account.html.ep
index 2c58a7b..627be85 100644
--- a/templates/account.html.ep
+++ b/templates/account.html.ep
@@ -16,6 +16,9 @@
% elsif ($success eq 'privacy') {
<span class="card-title">Einstellungen zu öffentliche Account-Daten geändert</span>
% }
+ % elsif ($success eq 'use_history') {
+ <span class="card-title">Einstellungen zu vorgeschlagenen Verbindungen geändert</span>
+ % }
% elsif ($success eq 'webhook') {
<span class="card-title">Web Hook aktualisiert</span>
% }
@@ -28,6 +31,7 @@
<h1>Account</h1>
% my $acc = current_user();
% my $hook = get_webhook();
+% my $use_history = account_use_history($acc->{id});
<div class="row">
<div class="col s12">
<table class="striped">
@@ -44,6 +48,18 @@
<td><a href="/account/password"><i class="material-icons">edit</i></a></td>
</tr>
<tr>
+ <th scope="row">Verbindungen</th>
+ <td>
+ <a href="/account/insight"><i class="material-icons">edit</i></a>
+ % if ($use_history & 0x03) {
+ Vorschläge aktiv
+ % }
+ % else {
+ <span style="color: #999999;">Vorschläge deaktiviert</span>
+ % }
+ </td>
+ </tr>
+ <tr>
<th scope="row">Öffentliche Daten</th>
<td>
<a href="/account/privacy"><i class="material-icons">edit</i></a>