my $shares;
foreach my $evt (@{ $plan->{Events}{$reso} }) {
my $type= $evt->{Type};
+ my $share= $evt->{Share};
my $show=
$type eq End ? ($evt->{Share} ? "End $evt->{Info}" : "") :
$type eq Unshare ? "$type [".showsharetype($evt->{Info})."]" :
(!$evt->{Allocated} ? Booking :
($evt->{Allocated}{Live} ? Allocation : Completed).
" $evt->{Allocated}{Task}")." ".$evt->{Info};
- my $share= $evt->{Share};
if ($share) {
$show .= sprintf(" [%s %d/%d %d]",
showsharetype($share->{Type}),
$content->{Avail} ||
$content->{Type} eq After ||
($content->{Allocated} && !$content->{Allocated}{Live});
+ my $shared = $content->{Share};
my $bgcolour=
$avail ?
- ($content->{Share} ? "#ccccff" : "#ffffff") :
+ ($shared ? "#ccccff" : "#ffffff") :
$content->{Type} eq Overrun ?
- ($content->{Share} ? "#443344" : "#442222") :
+ ($shared ? "#443344" : "#442222") :
$content->{Allocated} ?
- ($content->{Share} ? "#882288" : "#882222")
+ ($shared ? "#882288" : "#882222")
:
- ($content->{Share} ? "#005555" : "#448844");
+ ($shared ? "#005555" : "#448844");
my $fgcolour=
$avail ? "#000000" : "#ffffff";
printf "<td valign=top rowspan=%d".