Commit 343e9ef2 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

history: more smartphone-friendly

parent 1aa5e786
Loading
Loading
Loading
Loading
+11 −13
Original line number Diff line number Diff line
@@ -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>
					% }