From 561ff4574bb6078ce4c9f72647a9c3d1a92cac6e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 8 Dec 2019 11:06:17 +0100 Subject: Allow status visibility to be limited to travelynx users --- templates/account.html.ep | 7 +++++-- templates/privacy.html.ep | 35 ++++++++++++++++++++++++++--------- 2 files changed, 31 insertions(+), 11 deletions(-) (limited to 'templates') diff --git a/templates/account.html.ep b/templates/account.html.ep index 169a760..b3ec52a 100644 --- a/templates/account.html.ep +++ b/templates/account.html.ep @@ -66,10 +66,13 @@ % if ($acc->{is_public} == 0) { Keine % } - % if ($acc->{is_public} & 0x02) { + % if ($acc->{is_public} & 0x01) { + Aktueller Status (nur für angemeldete Accounts) + % } + % elsif ($acc->{is_public} & 0x02) { Aktueller Status % } - % if (($acc->{is_public} & 0x06) == 0x06) { + % if ($acc->{is_public} & 0x04) { mit Kommentar % } diff --git a/templates/privacy.html.ep b/templates/privacy.html.ep index b16ee44..e8e6459 100644 --- a/templates/privacy.html.ep +++ b/templates/privacy.html.ep @@ -7,31 +7,48 @@ kennen. -

Öffentliche Daten:

%= form_for '/account/privacy' => (method => 'POST') => begin +

Aktueller Status

%= csrf_field
+
+
+
+
+ +
+
+
+
+
- Wenn aktiv, ist dein aktueller Status unter /status/<%= $name %> abrufbar. Wenn du eingecheckt bist, - werden dort Zug, Start- und Zielstation, Abfahrts- und Ankunftszeit - gezeigt; andernfalls lediglich der Zielbahnhof der letzten Reise. - Wann die letzte Reise beendet wurde, wird bewusst nicht angegeben. + Hier kannst du auswählen, ob dein aktueller Status unter /status/<%= $name %> abrufbar ist. + Wenn du eingecheckt bist, werden dort Zug, Start- und Zielstation, + Abfahrts- und Ankunftszeit gezeigt; andernfalls lediglich der + Zielbahnhof der letzten Reise. Wann die letzte Reise beendet wurde, + wird bewusst nicht angegeben.
-- cgit v1.2.3