From ddcefead29544e7813f942e0eca062bf6433763e Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 13 Apr 2014 17:15:29 -0700 Subject: installers (calendaring), RT#16584 --- rt/share/html/Search/Schedule.html | 61 +++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) (limited to 'rt/share/html/Search/Schedule.html') diff --git a/rt/share/html/Search/Schedule.html b/rt/share/html/Search/Schedule.html index 14956b2db..4bc5134cb 100644 --- a/rt/share/html/Search/Schedule.html +++ b/rt/share/html/Search/Schedule.html @@ -5,6 +5,51 @@ %} + + + + <& /Search/Calendar.html, @_, Query => "( Status = 'new' OR Status = 'open' OR Status = 'stalled') @@ -14,13 +59,27 @@ Embed => 'Schedule.html', DimPast => 1, Display => 'Schedule', - DisplayArgs => [ username => $ARGS{username} ], + DisplayArgs => [ username => $ARGS{username}, + LengthMin => $LengthMin, + ], &> +<%ONCE> + +my $timestep = RT->Config->Get('CalendarWeeklySizeMin') || 30; #1/2h + + <%init> + my @files = (); #if ( ! $initialized ) { push @files, map "overlibmws$_", ( '', qw( _iframe _draggable _crossframe ) ); push @files, map { "${_}contentmws" } qw( iframe ajax ); #%} + +my $LengthMin = 180; #XXX $ARGS{LengthMin};, passed in + +my $cells = int($LengthMin / $timestep); +$cells++ if $LengthMin % $timestep; + -- cgit v1.2.1