summaryrefslogtreecommitdiff
path: root/rt/share/html/Search
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-04-13 13:23:37 -0700
committerIvan Kohler <ivan@freeside.biz>2014-04-13 13:23:37 -0700
commit7cfd11c02730df0bd27f03b8da765666af0a0edc (patch)
tree8ea16957a37af52f293add29447fdc8cb5da3dee /rt/share/html/Search
parent778b8c70120cce490e8c6ddb534f1302200e0ad6 (diff)
installers (calendaring), RT#16584
Diffstat (limited to 'rt/share/html/Search')
-rw-r--r--rt/share/html/Search/Calendar.html15
-rw-r--r--rt/share/html/Search/Schedule.html1
2 files changed, 10 insertions, 6 deletions
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
</%ARGS>
% 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;
<td
- class="<% $offmonth ? 'offmonth'
- : $is_today ? 'today'
- : $is_yesterday ? 'yesterday'
- : $is_aweekago ? 'aweekago'
+ class="<% $past ? 'past' : '' %><% $offmonth ? 'offmonth' : '' %><%
+ $is_today ? ' today'
+ : $is_yesterday ? ' yesterday'
+ : $is_aweekago ? ' aweekago'
: ''
%>"
>
<div class="<% $is_today ? 'todays'
- : $offmonth ? 'offmonth'
- : ''
+ : ( $past ? 'past' : ''). ($offmonth ? 'offmonth' : '' )
%>calendardate"
><% $date->day %></div>
@@ -268,6 +270,7 @@ $slots => $default_slots
<& $el, CurrentUser => $session{CurrentUser},
Tickets => $Tickets{$date->strftime("%F")},
Date => $date,
+ today => $today,
DateTypes => \%DateTypes,
@DisplayArgs,
&>
diff --git a/rt/share/html/Search/Schedule.html b/rt/share/html/Search/Schedule.html
index 9ba41c7e3..14956b2db 100644
--- a/rt/share/html/Search/Schedule.html
+++ b/rt/share/html/Search/Schedule.html
@@ -12,6 +12,7 @@
#XXX and we have the magic custom field
slots => scalar( @{ $ARGS{username} } ),
Embed => 'Schedule.html',
+ DimPast => 1,
Display => 'Schedule',
DisplayArgs => [ username => $ARGS{username} ],
&>