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
|
@functools.cached_property
|
||||||
def show_flags(self) -> bool:
|
def show_flags(self) -> bool:
|
||||||
"""Show flags for international trips."""
|
"""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
|
@property
|
||||||
def countries_str(self) -> str:
|
def countries_str(self) -> str:
|
||||||
|
|
|
@ -284,7 +284,7 @@
|
||||||
| Venue: {{ item.venue }}
|
| Venue: {{ item.venue }}
|
||||||
| Location: {{ item.location }}
|
| Location: {{ item.location }}
|
||||||
{% if country %}
|
{% if country %}
|
||||||
{{ country.flag }}
|
{{ flag(trip, country.flag) }}
|
||||||
{% elif item.online %}
|
{% elif item.online %}
|
||||||
💻 Online
|
💻 Online
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in a new issue