Less flags.
Only show flags for international trips to more than one country.
This commit is contained in:
parent
010f56aabf
commit
340905ecff
|
@ -171,7 +171,7 @@ class Trip:
|
|||
@functools.cached_property
|
||||
def show_flags(self) -> bool:
|
||||
"""Show flags for international trips."""
|
||||
return len(self.countries) != 1 or self.countries[0].name != "United Kingdom"
|
||||
return len({c for c in self.countries if c.name != "United Kingdom"}) > 1
|
||||
|
||||
@property
|
||||
def countries_str(self) -> str:
|
||||
|
|
|
@ -284,7 +284,7 @@
|
|||
| Venue: {{ item.venue }}
|
||||
| Location: {{ item.location }}
|
||||
{% if country %}
|
||||
{{ country.flag }}
|
||||
{{ flag(trip, country.flag) }}
|
||||
{% elif item.online %}
|
||||
💻 Online
|
||||
{% else %}
|
||||
|
|
Loading…
Reference in a new issue