% layout 'default'; % my $title = 'History'; % title $title;

<%= $title %> (<%= $rs->{ since } %> - <%= $rs->{ to } %>)

% if ( $rs->{ error } ) {

%= $rs->{ error }

% } else { % my @plans = @{ $rs->{ rows } }; % if ( scalar @plans ) {
% my $date = ''; % my $open = 0; % for my $plan ( @plans ) { % if ( $plan->{ date } ne $date ) { % if ( $open ) { % $open = 0; % }

<%= $plan->{ date } =%>

% }
% } else {

Sorry, but no results were found in the database for this page.

% }
% if ( $rs->{ next_date } ) { % } % if ( $rs->{ prev_date } ) { % }
% }