From cd868da8c6c3ef1fc768f79914927cc3542f6832 Mon Sep 17 00:00:00 2001 From: Milan Date: Tue, 15 Dec 2020 13:11:48 +0100 Subject: [PATCH] calendar.cgi: show playout status in list --- website/agenda/planung/calendar.cgi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/website/agenda/planung/calendar.cgi b/website/agenda/planung/calendar.cgi index 16e4b6c..b62397e 100755 --- a/website/agenda/planung/calendar.cgi +++ b/website/agenda/planung/calendar.cgi @@ -732,6 +732,7 @@ sub showEventList { my $liveIcon = ''; my $draftIcon = ''; my $archiveIcon = ''; + my $playoutIcon = ''; my $out = ''; $out = qq{ @@ -749,6 +750,7 @@ sub showEventList { $rerunIcon $draftIcon $liveIcon + $playoutIcon $archiveIcon project studio @@ -837,6 +839,10 @@ sub showEventList { $draft = '-' if $draft eq '0'; $draft = $draftIcon if $draft eq '1'; + my $playout = $event->{playout} || '0'; + $playout = '-' if $playout eq '0'; + $playout = $playoutIcon if $playout eq '1'; + my $title = $event->{title}; $title .= ': ' . $event->{user_title} if $event->{user_title} ne ''; @@ -846,6 +852,10 @@ sub showEventList { $other_studio = '' if $other_studio; $other_project = '' if $other_project; + my $file = $event->{file} + ? 'playout: ' . $event->{file} =~ s/\'/\'/gr + : 'playout'; + $out .= qq!! . qq!! @@ -860,6 +870,7 @@ sub showEventList { . qq!$rerun! . qq!$draft! . qq!$live! + . qq!$playout! . qq!$archived! . qq!$event->{project_name} $other_studio! . qq!$event->{studio_name} $other_studio!