summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-27 21:26:37 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-27 21:26:37 +0100
commit343e9ef20cf743005fe3224af9652c3fa6874b90 (patch)
tree96da2c4b0d1ef59d595aae072cd20cf7711d9d2d /templates
parent1aa5e786edb0134fe39b31ee7834d925f8e94896 (diff)
history: more smartphone-friendly
Diffstat (limited to 'templates')
-rw-r--r--templates/history.html.ep24
1 files changed, 11 insertions, 13 deletions
diff --git a/templates/history.html.ep b/templates/history.html.ep
index 0bed9ab..6b0f894 100644
--- a/templates/history.html.ep
+++ b/templates/history.html.ep
@@ -56,8 +56,7 @@
<th>Datum</th>
<th>Zug</th>
<th>Strecke</th>
- <th>Abfahrt</th>
- <th>Ankunft</th>
+ <th>Zeit</th>
</tr>
</thead>
<tbody>
@@ -69,17 +68,6 @@
<td><a href="<%= $detail_link %>"><%= $travel->{type} %> <%= $travel->{line} // '' %> <%= $travel->{no} %></a></td>
<td><a href="<%= $detail_link %>"><%= $travel->{from_name} %> → <%= $travel->{to_name} %></a></td>
<td>
- % if (param('cancelled')) {
- %= $travel->{sched_departure}->strftime('%H:%M')
- % }
- % else {
- <%= $travel->{rt_departure}->strftime('%H:%M') %>
- % if ($travel->{sched_departure} != $travel->{rt_departure}) {
- (<%= sprintf('%+d', ($travel->{rt_departure}->epoch - $travel->{sched_departure}->epoch) / 60) %>)
- % }
- % }
- </td>
- <td>
% if (param('cancelled') and $travel->{sched_arrival}->epoch != 0) {
%= $travel->{sched_arrival}->strftime('%H:%M')
% }
@@ -93,6 +81,16 @@
% }
% }
% }
+ <br/>
+ % if (param('cancelled')) {
+ %= $travel->{sched_departure}->strftime('%H:%M')
+ % }
+ % else {
+ <%= $travel->{rt_departure}->strftime('%H:%M') %>
+ % if ($travel->{sched_departure} != $travel->{rt_departure}) {
+ (<%= sprintf('%+d', ($travel->{rt_departure}->epoch - $travel->{sched_departure}->epoch) / 60) %>)
+ % }
+ % }
</td>
</tr>
% }