Improve display of countries on stats page
This commit is contained in:
parent
40578196bc
commit
0079f46a80
|
@ -7,7 +7,7 @@
|
||||||
{% block title %}{{ heading }} - Edward Betts{% endblock %}
|
{% block title %}{{ heading }} - Edward Betts{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="container-fluid">
|
||||||
<h1>Trip statistics</h1>
|
<h1>Trip statistics</h1>
|
||||||
<div>Trips: {{ count }}</div>
|
<div>Trips: {{ count }}</div>
|
||||||
<div>Total distance: {{ format_distance(total_distance) }}</div>
|
<div>Total distance: {{ format_distance(total_distance) }}</div>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
<div>Trips in {{ year }}: {{ year_stats.count }}</div>
|
<div>Trips in {{ year }}: {{ year_stats.count }}</div>
|
||||||
<div>{{ countries | count }} countries visited in {{ year }}:
|
<div>{{ countries | count }} countries visited in {{ year }}:
|
||||||
{% for c in countries %}
|
{% for c in countries %}
|
||||||
{{ c.flag }} {{ c.name }}
|
<span class="text-nowrap">{{ c.flag }} {{ c.name }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<div>Flights in {{ year }}: {{ year_stats.flight_count }}</div>
|
<div>Flights in {{ year }}: {{ year_stats.flight_count }}</div>
|
||||||
|
|
Loading…
Reference in a new issue