{% macro assignment_cell(values) %} {% for _, name, link in values %}

{% if link %} {{name|safe}} {% else %} {{name}} {% endif %}

{% endfor %} {% endmacro %} {% macro title_cell(ev) %} {% set cats = normalize_categories(ev) %}

{% if 'attach' in ev %} {{ev['summary']}} {% else %} {{ev['summary']}} {% endif %}

{% endmacro %} {% macro class_period(n, ev) %} {{n}} {{ev.decoded('dtstart').strftime("%x")}} {{title_cell(ev)}} {% set assignments = assignment_data(ev.get('description','')) %} {{ assignment_cell(items_assigned(assignments)) }} {{ assignment_cell(items_due(assignments)) }} {% endmacro %} {% macro hackathon(ev) %} *** {{ev.decoded('dtstart').strftime("%x %X")}} - {{ev.decoded('dtend').strftime("%x %X")}} {{title_cell(ev)}} {{ev.decoded('location')|default("")}} {% endmacro %} {% macro calendar(cal) %} {% for week in calendar_weeks(cal) %} {% set week_loop = loop %} {% set class_count = 0 %} {% for event in week %} {% if loop.first %} {% endif %} {% if 'hackathon' in normalize_categories(event)%} {{hackathon(event)}} {% else %} {% set class_count = class_count + 1 %} {{class_period(class_count, event)}} {% endif %} {% endfor %} {% endfor %}
Week Day Topic Assigned Due
{{week_loop.index}}
{% endmacro %}