From 6277cdd929f81db764333cfc6473f476a04d2fcb Mon Sep 17 00:00:00 2001
From: Birte Kristina Friesel
Date: Sun, 16 Jul 2023 10:33:49 +0200
Subject: status card: do not show detail/map links in timeline view
---
templates/_public_status_card.html.ep | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
(limited to 'templates')
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep
index cbdc878..0f7cacd 100644
--- a/templates/_public_status_card.html.ep
+++ b/templates/_public_status_card.html.ep
@@ -156,17 +156,19 @@
% }
-
- % if ($journey->{traewelling_url}) {
-
timeline Träwelling
- % } else {
- % my $url = 'https://bahn.expert/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000';
-
timeline Zuglauf
- % }
- % if ($journey->{extra_data}{trip_id}) {
-
map Karte
- % }
-
+ % if (not stash('from_timeline')) {
+
+ % if ($journey->{traewelling_url}) {
+
timeline Träwelling
+ % } else {
+ % my $url = 'https://bahn.expert/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000';
+
timeline Zuglauf
+ % }
+ % if ($journey->{extra_data}{trip_id}) {
+
map Karte
+ % }
+
+ % }
% }
% else {
--
cgit v1.2.3