diff --git a/pinax/templates/templates/pinax/calendars/calendar.html b/pinax/templates/templates/pinax/calendars/calendar.html new file mode 100644 index 0000000..afe8fab --- /dev/null +++ b/pinax/templates/templates/pinax/calendars/calendar.html @@ -0,0 +1,52 @@ +{% load i18n %} + +
+
+

{{ title }}

+ +
+ {% if prev %} + {% trans "Previous month" %} + {% endif %} + + {{ calendar_date|date:'m.Y' }} + + {% if next %} + {% trans "Next month" %} + {% endif %} +
+
+ +
+ + {% for row in grid %} + + {% for day in row %} + {% if not day %} + + {% else %} + {% with day_day=day.0 day_events=day.1 link=day.2 is_today=day.3 %} + + {% endwith %} + {% endif %} + {% endfor %} + + {% endfor %} +
+ {% if link %} + {{ day_day }} + {% else %} + {{ day_day }} + {% endif %} + {% if day_events %} +
+ {% for event in day_events %} +
+ {{ event }} +
+ {% endfor %} +
+ {% endif %} +
+
+