diff --git a/agenda/conference.py b/agenda/conference.py index 19e77bf..24ed552 100644 --- a/agenda/conference.py +++ b/agenda/conference.py @@ -35,8 +35,6 @@ class Conference: longitude: float | None = None cfp_end: date | None = None cfp_url: str | None = None - free: bool | None = None - hackathon: bool | None = None @property def display_name(self) -> str: diff --git a/agenda/types.py b/agenda/types.py index a96eff3..4bcfa5b 100644 --- a/agenda/types.py +++ b/agenda/types.py @@ -56,14 +56,7 @@ class Trip: travel_end = max(arrive) if arrive else datetime.date.min assert isinstance(travel_end, datetime.date) - accommodation_end = ( - max(as_date(item["to"]) for item in self.accommodation) - if self.accommodation - else datetime.date.min - ) - assert isinstance(accommodation_end, datetime.date) - - max_date = max(max_conference_end, travel_end, accommodation_end) + max_date = max(max_conference_end, travel_end) return max_date if max_date != datetime.date.min else None @property diff --git a/templates/trip_page.html b/templates/trip_page.html index a9bf8a8..a7a6169 100644 --- a/templates/trip_page.html +++ b/templates/trip_page.html @@ -44,7 +44,7 @@ } #map { - height: 90vh; + height: 80vh; } @@ -53,138 +53,75 @@ {% set end = trip.end %} {% block content %} -
- {% if end %} - {{ display_date_no_year(trip.start) }} to {{ display_date_no_year(end) }} - ({{ (end - trip.start).days }} nights) - {% else %} - {{ display_date_no_year(trip.start) }} (end date missing) - {% endif %} -
- -- 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 %} -
-- Address: {{ item.address }} - | Location: {{ item.location }} - {% if country %} - {{ country.flag }} - {% elif item.online %} - 💻 Online - {% else %} - - country code {{ item.country }} not found - - {% endif %} - {% if item.price and item.currency %} - | price: {{ item.price }} {{ item.currency }} - {% endif %} -
-| {{ display_date(item.date) }} | - {% else %} -- {% endif %} - | {{ country.flag }} {{ country.name }} | -{{ item.display_name }} | -
No public holidays during trip.
- {% endif %} -- {% if prev_trip %} - previous: {{ trip_link(prev_trip) }} ({{ (trip.start - prev_trip.end).days }} days) - {% endif %} - {% if next_trip %} - next: {{ trip_link(next_trip) }} ({{ (next_trip.start - trip.end).days }} days) - {% endif %} -
- -| {{ display_date(item.date) }} | + {% else %} ++ {% endif %} + | {{ country.flag }} {{ country.name }} | +{{ item.display_name }} | +
+ {% if prev_trip %} + previous: {{ trip_link(prev_trip) }} ({{ (trip.start - prev_trip.end).days }} days) + {% endif %} + {% if next_trip %} + next: {{ trip_link(next_trip) }} ({{ (next_trip.start - trip.end).days }} days) + {% endif %} +
+ + {% if coordinates %} + + {% endif %} +