history: more smartphone-friendly
This commit is contained in:
parent
1aa5e786ed
commit
343e9ef20c
1 changed files with 11 additions and 13 deletions
|
@ -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>
|
||||
% }
|
||||
|
|
Loading…
Reference in a new issue