buses.djhtml
1 |
|
2 |
{% load i18n %} |
3 |
{% load humanize %} |
4 |
{% load joeni_org %} |
5 |
|
6 |
{% block title %} |
7 |
{% trans "Buses" %} | {{ block.super }} |
8 |
{% endblock %} |
9 |
|
10 |
{% block main %} |
11 |
<h1>{% trans "Bus departures" %}</h1> |
12 |
<h2 id="diepenbeek">Campus Diepenbeek</h2> |
13 |
<div class="flex-container"> |
14 |
{% for bus in departures_diepenbeek %} |
15 |
<div class="flex-items timetable" style="border-color: {{ bus.color }};"> |
16 |
<span class="number" style="background-color: {{ bus.color }};"> |
17 |
{{ bus.number }}</span> |
18 |
{{ bus.time|time }} |
19 |
<span style="color: {{ bus.color }}; font-weight:bold;">🡺</span> |
20 |
{{ bus.destination }} |
21 |
<div class="timetable-under"> |
22 |
<time>{{ bus.time|naturaltime|capfirst }}</time> |
23 |
{% if bus.via %} |
24 |
<span style="color: {{ bus.color }}; font-weight:bold;">|</span> |
25 |
<span class="undernote"> Gaat via {{ bus.via }}</span> |
26 |
{% endif %} |
27 |
</div> |
28 |
</div> |
29 |
{% empty %} |
30 |
{% trans "There are currently no buses that stop here." %} |
31 |
{% endfor %} |
32 |
</div> |
33 |
|
34 |
<h2 id="hasselt">Campus Hasselt (Dusartplein)</h2> |
35 |
<div class="flex-container"> |
36 |
{% for bus in departures_dusart %} |
37 |
<div class="flex-items timetable" style="border-color: {{ bus.color }};"> |
38 |
<span class="number" style="background-color: {{ bus.color }};"> |
39 |
{{ bus.number }}</span> |
40 |
{{ bus.time|time }} |
41 |
<span style="color: {{ bus.color }}; font-weight:bold;">🡺</span> |
42 |
{{ bus.destination }} |
43 |
<div class="timetable-under"> |
44 |
<time>{{ bus.time|naturaltime|capfirst }}</time> |
45 |
{% if bus.via %} |
46 |
<span style="color: {{ bus.color }}; font-weight:bold;">|</span> |
47 |
<span class="undernote"> Gaat via {{ bus.via }}</span> |
48 |
{% endif %} |
49 |
</div> |
50 |
</div> |
51 |
{% empty %} |
52 |
{% trans "There are currently no buses that stop here." %} |
53 |
{% endfor %} |
54 |
</div> |
55 |
|
56 |
|
57 |
{% endblock main %} |
58 |