Add hover text for country flags on space launch page

Closes: #174
This commit is contained in:
Edward Betts 2024-10-23 07:10:31 +01:00
parent 38792a1721
commit 6333587cc2

View file

@ -72,7 +72,7 @@
</div> </div>
<div class="col"> <div class="col">
<div> <div>
{{ country.flag }} <abbr title="{{ country.name }}">{{ country.flag }}</abbr>
{{ launch.rocket.full_name }} {{ launch.rocket.full_name }}
&ndash; &ndash;
<strong>{{launch.mission.name }}</strong> <strong>{{launch.mission.name }}</strong>
@ -100,9 +100,10 @@
{% if launch.mission.agencies | count %} {% if launch.mission.agencies | count %}
<div> <div>
{% for agency in launch.mission.agencies %} {% for agency in launch.mission.agencies %}
{% set agency_country = get_country(agency.country_code) %}
{%- if not loop.first %}, {% endif %} {%- if not loop.first %}, {% endif %}
<a href="{{ agency.wiki_url }}">{{agency.name }}</a> <a href="{{ agency.wiki_url }}">{{agency.name }}</a>
{{ get_country(agency.country_code).flag }} <abbr title="{{ agency_country.name }}">{{ agency_country.flag }}</abbr>
({{ agency.type }}) {# <img src="{{ agency.logo_url }}"/> #} ({{ agency.type }}) {# <img src="{{ agency.logo_url }}"/> #}
{% endfor %} {% endfor %}
</div> </div>