From 590d3de51891705730eca92527f0d4f651570a29 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 30 Sep 2020 19:46:54 +0200 Subject: Template adjustments; hide traewelling from public view for now --- templates/account.html.ep | 13 +++++++++---- templates/traewelling.html.ep | 4 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/account.html.ep b/templates/account.html.ep index 8943e3f..093049c 100644 --- a/templates/account.html.ep +++ b/templates/account.html.ep @@ -114,8 +114,9 @@ % } + % if ($traewelling->{token}) { - Traewelling + Träwelling edit % if (not ($traewelling->{token})) { @@ -124,14 +125,18 @@ % elsif ($traewelling->{errored}) { Fehlerhaft error % } - % elsif (not ($traewelling->{push_sync} or $traewelling->{pull_sync})) { - Verknüpft mit <%= $traewelling->{data}{user_name} // $traewelling->{email} %>, Synchronisierung inaktiv - % } % else { Verknüpft mit <%= $traewelling->{data}{user_name} // $traewelling->{email} %> + % if ($traewelling->{pull_sync}) { + – Checkins in Träwelling werden von travelynx übernommen + % } + % elsif ($traewelling->{push_sync}) { + – Checkins in travelynx werden zu Träwelling weitergereicht + % } % } + % } Registriert am <%= $acc->{registered_at}->strftime('%d.%m.%Y %H:%M') %> diff --git a/templates/traewelling.html.ep b/templates/traewelling.html.ep index 3a5eab3..a879d82 100644 --- a/templates/traewelling.html.ep +++ b/templates/traewelling.html.ep @@ -190,14 +190,14 @@
% if ($traewelling->{latest_run}->epoch) { - Letzter Kontakt mit Träwelling <%= $traewelling->{latest_run}->strftime('am %d.%m.%Y um %H:%M:%S') %>
+ Letzter Checkin <%= $traewelling->{latest_run}->strftime('am %d.%m.%Y um %H:%M:%S') %>
% if ($traewelling->{errored}) { error Fehler: <%= $traewelling->{data}{error} %> % } % } % else { - Bisher wurde noch keine Synchronisierung durchgeführt. + Bisher wurde noch kein Checkin übernommen. % }
-- cgit v1.2.3