Unverified Commit 383ec3fe authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

connections: platform on the left, times on the right; similar to departure board

parent f3ad5a5e
Loading
Loading
Loading
Loading
+21 −18
Original line number Diff line number Diff line
@@ -22,30 +22,23 @@
					%= $train->line
				% }
				<br/>
				% if ($train->platform) {
					% if ($checkin_from) {
					<a>
				% }
				% if ($train->departure_is_cancelled) {
					%= $train->sched_departure->strftime('%H:%M')

						<a>Gleis <%= $train->platform %></a>
					% }
					% else {
					%= $train->departure->strftime('%H:%M')
					% if ($train->departure_delay) {
						%= sprintf('(%+d)', $train->departure_delay)
						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>
+7 −4
Original line number Diff line number Diff line
@@ -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>