summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-03-24 17:49:53 +0100
committerDerf Null <derf@finalrewind.org>2023-03-24 17:49:53 +0100
commit3a3a7bfedaab71c5641b10c77c51117098a4be60 (patch)
tree06de50f1f36d62d41cae5b9d6819e6cf58378dd2
parent36eee924aa923f37619dd6329774ef368ea6ffcf (diff)
only show passenger rights link on own journeys1.30.8
-rw-r--r--templates/journey.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index 6ed204f..696329f 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -54,7 +54,7 @@
∗ Daten wurden manuell eingetragen
</p>
% }
- % if ($journey->{cancelled} or ($journey->{rt_arrival} and ($journey->{rt_arrival}->epoch - $journey->{sched_arrival}->epoch) >= 3600)) {
+ % if (not stash('readonly') and ($journey->{cancelled} or ($journey->{rt_arrival} and ($journey->{rt_arrival}->epoch - $journey->{sched_arrival}->epoch) >= 3600))) {
<div style="text-align: center; margin-bottom: 1em;">
% my $form_target = sprintf('/journey/passenger_rights/FGR %s %s %s.pdf', $journey->{sched_departure}->ymd, $journey->{type}, $journey->{no});
%= form_for $form_target => (method => 'POST') => begin