From bba6721754711446268445044406d74dda01aafc Mon Sep 17 00:00:00 2001
From: Daniel Friesel
Date: Tue, 9 Apr 2019 18:37:21 +0200
Subject: Allow journey editing, keep track of edited journey attributes
Provides a workaround for #2
---
templates/journey.html.ep | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
(limited to 'templates')
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index b5c24a7..07c53c1 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -27,7 +27,9 @@
<%= $journey->{sched_departure}->strftime('%d.%m.%Y') %>
% if ($journey->{edited}) {
- Die Ankunfts- und Abfahrtsdaten wurden nachträglich bearbeitet.
+
+ ∗ Daten wurden manuell eingetragen
+
% }
@@ -54,6 +56,9 @@
% else {
%= $journey->{sched_departure}->strftime('%H:%M');
% }
+ % if ($journey->{edited} & 0x0003) {
+ ∗
+ % }
@@ -76,6 +81,9 @@
% else {
%= $journey->{sched_arrival}->strftime('%H:%M');
% }
+ % if ($journey->{edited} & 0x0300) {
+ ∗
+ % }
@@ -92,6 +100,9 @@
∅ <%= sprintf('%.f', $journey->{kmh_route}) %> km/h
(<%= sprintf('%.f', $journey->{kmh_beeline}) %> km/h)
+ % if ($journey->{edited} & 0x0303) {
+ ∗
+ % }
|
--
cgit v1.2.3