{% extends "layout.html" %} {% block content %}

{{ days[0].date.strftime("%h %d") }} – {{ days[-1].date.strftime("%h %d") }}

{% for m in ["am", "pm"]%} {% for t in [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] %} {% if now.strftime("%P") == m and now.strftime("%l").strip() == "{}".format(t) %} {% endfor %} {% endfor %} {%for day in days%} {% if day.date.strftime("%x") == now.strftime("%x") %} {% if day.date.strftime("%x") == now.strftime("%x") %} {%for hour in day.hours%} {% endfor %} {%endfor%}
Date Day {% else %} {% endif %} {{t}} {{m}}
{% else %} {% endif %} {{day.date.strftime("%m/%d")}} {% else %} {% endif %} {{day.date.strftime("%a").upper()}} {% if hour.activity.code != -1 %} {{hour.activity.code}} {% endif %} {{day.note}}
{% endblock %}