X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSearch%2FCalendar.html;h=55b2b5a8aa22605e60c168853d8b95bfa831a58b;hb=7cfd11c02730df0bd27f03b8da765666af0a0edc;hp=d86a5b5cbc4188c3036ac6bee4710a7f790da3ca;hpb=cebcd8658ba5f45fc21d59769d591b1418a3fdd2;p=freeside.git diff --git a/rt/share/html/Search/Calendar.html b/rt/share/html/Search/Calendar.html index d86a5b5cb..55b2b5a8a 100644 --- a/rt/share/html/Search/Calendar.html +++ b/rt/share/html/Search/Calendar.html @@ -16,6 +16,7 @@ $Embed => undef $Display => undef @DisplayArgs => () $slots => $default_slots +$DimPast => 0 % my $title; @@ -247,18 +248,19 @@ $slots => $default_slots % my $is_today = (DateTime->compare($today, $date) == 0); % my $is_yesterday = (DateTime->compare($yesterday, $date) == 0); % my $is_aweekago = (DateTime->compare($aweekago, $date) == 0); +% +% my $past = $DimPast && DateTime->compare($today, $date) == 1; <% $offmonth ? 'offmonth' : '' %><% + $is_today ? ' today' + : $is_yesterday ? ' yesterday' + : $is_aweekago ? ' aweekago' : '' %>" >
<% $date->day %>
@@ -268,6 +270,7 @@ $slots => $default_slots <& $el, CurrentUser => $session{CurrentUser}, Tickets => $Tickets{$date->strftime("%F")}, Date => $date, + today => $today, DateTypes => \%DateTypes, @DisplayArgs, &>