history: more smartphone-friendly

This commit is contained in:
Daniel Friesel 2019-03-27 21:26:37 +01:00
parent 1aa5e786ed
commit 343e9ef20c

View file

@ -56,8 +56,7 @@
<th>Datum</th> <th>Datum</th>
<th>Zug</th> <th>Zug</th>
<th>Strecke</th> <th>Strecke</th>
<th>Abfahrt</th> <th>Zeit</th>
<th>Ankunft</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -69,17 +68,6 @@
<td><a href="<%= $detail_link %>"><%= $travel->{type} %> <%= $travel->{line} // '' %> <%= $travel->{no} %></a></td> <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><a href="<%= $detail_link %>"><%= $travel->{from_name} %> → <%= $travel->{to_name} %></a></td>
<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) { % if (param('cancelled') and $travel->{sched_arrival}->epoch != 0) {
%= $travel->{sched_arrival}->strftime('%H:%M') %= $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> </td>
</tr> </tr>
% } % }