From 8bc32dd034810a209220567813f4277f45b2b8d7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 15 Jul 2022 21:00:38 +0200 Subject: [PATCH] show infobox in destination list --- sass/src/common/index.scss | 12 ++++++++++++ templates/_checked_in.html.ep | 17 +++++++++++++++-- templates/account.html.ep | 4 ++-- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/sass/src/common/index.scss b/sass/src/common/index.scss index 97d8dd5..6f8282f 100644 --- a/sass/src/common/index.scss +++ b/sass/src/common/index.scss @@ -22,6 +22,18 @@ a.unmarked { color: $off-black; } +div.targetlist { + display: grid; + grid-template-columns: 1fr max-content; + align-items: center; + > a.nonflex { + padding-left: 1em; + padding-top: 1em; + padding-bottom: 1em; + display: inline-block; + } +} + a.tablerow { display: flex; justify-content: space-between; diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 442dec4..dd00026 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -310,7 +310,12 @@
Ziel ändern? -

+ % if ($user->{sb_template}) { +

+ % } + % else { +

+ % } % for my $station (@{$journey->{route_after}}) { % my $is_dest = ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}); @@ -325,8 +330,16 @@ Zusatzhalt % } + % if ($user->{sb_template}) { + info + % } + % } + % if ($user->{sb_template}) { +

+ % } + % else { +

% } -

Falls das Backend ausgefallen ist oder der Zug aus anderen Gründen verloren ging: - + Registriert am <%= $acc->{registered_at}->strftime('%d.%m.%Y %H:%M') %>