summaryrefslogtreecommitdiff
path: root/templates/journey.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-09 18:37:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-09 18:37:21 +0200
commitbba6721754711446268445044406d74dda01aafc (patch)
tree5153c2e71abf3f3acd47fcfe5fb69ba4dd8b31f7 /templates/journey.html.ep
parent3ae6bda093d67069ca10cdcc777e27b3b09191b7 (diff)
Allow journey editing, keep track of edited journey attributes0.13
Provides a workaround for #2
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r--templates/journey.html.ep13
1 files changed, 12 insertions, 1 deletions
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 @@
<b><%= $journey->{sched_departure}->strftime('%d.%m.%Y') %></b>
</p>
% if ($journey->{edited}) {
- <p>Die Ankunfts- und Abfahrtsdaten wurden nachträglich bearbeitet.</p>
+ <p>
+ ∗ Daten wurden manuell eingetragen
+ </p>
% }
<table class="striped">
<tr>
@@ -54,6 +56,9 @@
% else {
%= $journey->{sched_departure}->strftime('%H:%M');
% }
+ % if ($journey->{edited} & 0x0003) {
+ ∗
+ % }
</td>
</tr>
<tr>
@@ -76,6 +81,9 @@
% else {
%= $journey->{sched_arrival}->strftime('%H:%M');
% }
+ % if ($journey->{edited} & 0x0300) {
+ ∗
+ % }
</td>
</tr>
<tr>
@@ -92,6 +100,9 @@
<td>
∅ <%= sprintf('%.f', $journey->{kmh_route}) %> km/h
(<%= sprintf('%.f', $journey->{kmh_beeline}) %> km/h)
+ % if ($journey->{edited} & 0x0303) {
+ ∗
+ % }
</td>
</tr>
<tr>