[% IF request.action == "view" %] [% SET shot = photo.shot %] [% END %] [% SET date = view_cal || shot || now %] [% SET imp_date = shot || now %] [% SET next = date.next_month %] [% SET prev = date.prev_month %] [% SET calendar = request.calendar(date.ymd) %] [% FOR week = calendar %] [% FOR day = week %] [% IF day.tag %] [% IF shot AND day.day == imp_date.mday %] [% ELSE %] [% END %] [% END %] [% END %]
« [% date.strftime("%Y-%m") %] [% IF next %] » [% END %]
S M TWTFS
[% ELSE %] [% END %] [% day.day %] [% day.day %]