diff options
Diffstat (limited to 'templates/account.html.ep')
-rw-r--r-- | templates/account.html.ep | 16 |
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> |