mirror of
https://github.com/derf/travelynx
synced 2024-11-30 00:10:18 +00:00
connections: platform on the left, times on the right; similar to departure board
This commit is contained in:
parent
f3ad5a5ef3
commit
383ec3feb3
2 changed files with 28 additions and 22 deletions
|
@ -22,30 +22,23 @@
|
|||
%= $train->line
|
||||
% }
|
||||
<br/>
|
||||
% if ($checkin_from) {
|
||||
<a>
|
||||
% }
|
||||
% if ($train->departure_is_cancelled) {
|
||||
%= $train->sched_departure->strftime('%H:%M')
|
||||
⊖
|
||||
% }
|
||||
% else {
|
||||
%= $train->departure->strftime('%H:%M')
|
||||
% if ($train->departure_delay) {
|
||||
%= sprintf('(%+d)', $train->departure_delay)
|
||||
% if ($train->platform) {
|
||||
% if ($checkin_from) {
|
||||
<a>Gleis <%= $train->platform %></a>
|
||||
% }
|
||||
% else {
|
||||
Gleis <%= $train->platform %>
|
||||
% }
|
||||
% }
|
||||
% if ($checkin_from) {
|
||||
</a>
|
||||
% }
|
||||
</td>
|
||||
<td class="<%= $td_class %>">
|
||||
% if ($checkin_from) {
|
||||
<a><%= $via %><br/><%= $via_arr %></a>
|
||||
<a><%= $via %></a>
|
||||
% }
|
||||
% else {
|
||||
<%= $via %><br/><%= $via_arr %>
|
||||
%= $via
|
||||
% }
|
||||
<br/>
|
||||
% if ($train->{interchange_icon}) {
|
||||
<i class="material-icons tiny" aria-label="<%= $train->{interchange_text} %>"><%= $train->{interchange_icon} %></i>
|
||||
% }
|
||||
|
@ -66,8 +59,18 @@
|
|||
% }
|
||||
</td>
|
||||
<td>
|
||||
% if ($train->platform) {
|
||||
Gleis <%= $train->platform %><br/>
|
||||
% if ($train->departure_is_cancelled) {
|
||||
%= $train->sched_departure->strftime('%H:%M')
|
||||
⊖
|
||||
% }
|
||||
% else {
|
||||
%= $train->departure->strftime('%H:%M')
|
||||
% }
|
||||
% if ($via_arr) {
|
||||
→ <%= $via_arr %>
|
||||
% }
|
||||
% if ($train->departure_delay) {
|
||||
%= sprintf('(%+d)', $train->departure_delay)
|
||||
% }
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -5,15 +5,18 @@
|
|||
<tr>
|
||||
<td>
|
||||
%= $info->{line}
|
||||
<br/>
|
||||
</td>
|
||||
<td>
|
||||
%= $via
|
||||
</td>
|
||||
<td>
|
||||
%= $info->{departure}->strftime('%H:%M')
|
||||
→
|
||||
%= $via_arr
|
||||
% if ($info->{departure_delay}) {
|
||||
%= sprintf('(%+d)', $info->{departure_delay})
|
||||
% }
|
||||
</td>
|
||||
<td>
|
||||
<%= $via %><br/><%= $via_arr %>
|
||||
</td>
|
||||
</tr>
|
||||
% }
|
||||
</tbody></table>
|
||||
|
|
Loading…
Reference in a new issue