[% # PROCESS site/js/jquery.tt # already loaded in html_wrapper %] [% # PROCESS dumper.tt dump = restricted %]

Modify constraints: [% div_name = 'constraints'; INCLUDE site/snippets/toggleview.tt %]

    [% UNLESS restricted.no_constraint %]
  • no constraint:
  • [% END %] [% UNLESS restricted.this_year %]
  • this year only:
  • [% END %] [% IF start_date; # don't load unless needed USE date(format = '%Y'); # just need year last_year = (date.format - 1); start_year = start_date.strftime('%Y'); IF start_year <= last_year %] [% UNLESS restricted.previous_year %]
  • a previous year: [% site.html.reset %]
  • [% END %] [% UNLESS restricted.all_since %]
  • all since year: [% site.html.reset %]
  • [% END %] [% END %] [% END %] [% UNLESS restricted.days %]
  • previous # days: [% site.html.reset %]
  • [% END %] [% UNLESS restricted.date_range %]
  • date range: to [% site.html.reset %]
  • [% END %]