{% macro display_datetime(dt) %}{{ dt.strftime("%a, %d, %b %Y %H:%M %z") }}{% endmacro %} {% macro display_time(dt) %} {% if dt %}{{ dt.strftime("%H:%M %z") }}{% endif %} {% endmacro %} {% macro display_date(dt) %}{{ dt.strftime("%a %-d %b %Y") }}{% endmacro %} {% macro display_date_no_year(dt) %}{{ dt.strftime("%a %-d %b") }}{% endmacro %} {% macro format_distance(distance) %} {{ "{:,.0f} km / {:,.0f} miles".format(distance, distance / 1.60934) }} {% endmacro %} {% macro trip_link(trip) %} {{ trip.title }} {% endmacro %} {% macro conference_row(item, badge, show_flags=True) %} {% set country = get_country(item.country) if item.country else None %}
Topic: {{ item.topic }} | Venue: {{ item.venue }} | Location: {{ item.location }} {% if country %} {{ country.flag }} {% elif item.online %} 💻 Online {% else %} country code {{ item.country }} not found {% endif %} {% if item.free %} | free to attend {% elif item.price and item.currency %} | price: {{ item.price }} {{ item.currency }} {% endif %}
{{ e.detail | pprint }}#} {% endif %} {% if e.detail.distance %} distance: {{ format_distance(e.detail.distance) }} {% endif %} {% if e.element_type == "flight" %} flightradar24 | FlightAware | radarbox {% endif %}