Better line display
This commit is contained in:
@ -34,17 +34,42 @@
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Heure</th>
|
||||
<th>Destination</th>
|
||||
<th class="px-3 py-1" colspan="2">Train</th>
|
||||
<th class="px-3 py-1">Heure</th>
|
||||
<th class="px-3 py-1">Destination</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for departure in next_departures %}
|
||||
<tr>
|
||||
<td>{{ departure.pretty_departure_time }}</td>
|
||||
<tr class="h-100">
|
||||
<td class="h-100">
|
||||
<div class="train-type d-flex h-100 align-items-center justify-content-center">
|
||||
<div class="transilien-route d-flex align-items-center justify-content-center font-weight-bold small p-1 m-2 text-center text-wrap"
|
||||
style="width: 4em; height: 4em; border-radius: 15%; background-color: #{{ departure.trip.color|default:"FFFFFF" }}; color: #{{ departure.trip.text_color|default:"000000" }};">
|
||||
{{ departure.trip.train_type }}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="h-100">
|
||||
<div class="train-number d-flex align-items-center justify-content-center h-100">
|
||||
<div>
|
||||
{% if departure.trip.service.transport_type == "TN" %}
|
||||
<div class="text-center">{{ departure.trip.headsign }}</div>
|
||||
{% endif %}
|
||||
<div>{{ departure.trip.train_number }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<h3>{{ departure.trip.destination }}</h3>
|
||||
{% for trip_stop in departure.trip.stop_times.all %}{% if trip_stop.stop_sequence > departure.stop_sequence %}{% if trip_stop.drop_off_type == 0 %}{{ trip_stop.stop.name }}{% if trip_stop.stop.name != departure.trip.destination %}, {% endif %}{% endif %}{% endif %}{% endfor %}
|
||||
<div class="table-hour d-flex align-items-center justify-content-center text-warning font-weight-bold h-100">
|
||||
{{ departure.pretty_departure_time }}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<h3 class="headline">{{ departure.trip.destination.name }}</h3>
|
||||
<span class="stops">
|
||||
{% for trip_stop in departure.trip.stop_times.all %}{% if trip_stop.stop_sequence > departure.stop_sequence %}{% if trip_stop.drop_off_type == 0 %}{{ trip_stop.stop.name }}{% if trip_stop.stop != departure.trip.destination %}, {% endif %}{% endif %}{% endif %}{% endfor %}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user