diff --git a/templates/accommodation.html b/templates/accommodation.html index a7f9b21..29e5bfa 100644 --- a/templates/accommodation.html +++ b/templates/accommodation.html @@ -21,10 +21,10 @@ {% macro row(item, badge) %} {% set country = get_country(item.country) %} +{% set nights = (item.to.date() - item.from.date()).days %}
{{ item.from.strftime("%a, %d %b %Y") }}
{{ item.to.strftime("%a, %d %b") }}
-
{{ (item.to.date() - item.from.date()).days }}
-
{{ item.name }}
+
{% if nights == 1 %}1 night{% else %}{{ nights }} nights{% endif %}
{{ item.operator }}
{{ item.location }}
@@ -36,6 +36,13 @@ {% endif %}
+
+ {% if item.url %} + {{ item.name }} + {% else %} + {{ item.name }} + {% endif %} +
{% endmacro %} {% macro section(heading, item_list, badge) %}