diff --git a/templates/conference_list.html b/templates/conference_list.html index a61659d..14c3560 100644 --- a/templates/conference_list.html +++ b/templates/conference_list.html @@ -19,19 +19,25 @@ {% endblock %} -{% macro row(item) %} +{% macro row(item, badge) %}
{{ item.start.strftime("%a, %d %b %Y") }}
{{ item.end.strftime("%a, %d %b") }}
-
{{ item.name }}
+
{{ item.name }} + {% if item.going %} + + {{ badge }} + + {% endif %} +
{{ item.topic }}
{{ item.location }}
{{ item.url }}
{% endmacro %} -{% macro section(heading, item_list) %} +{% macro section(heading, item_list, badge) %} {% if item_list %}

{{heading}}

-{% for item in item_list %}{{ row(item) }}{% endfor %} +{% for item in item_list %}{{ row(item, badge) }}{% endfor %} {% endif %} {% endmacro %} @@ -52,9 +58,9 @@

- {{ section("Current", current) }} - {{ section("Future", future) }} - {{ section("Past", past|reverse) }} + {{ section("Current", current, "attending") }} + {{ section("Future", future, "going") }} + {{ section("Past", past|reverse, "went") }}