From fed2fc5774c50908cb2b52841abdeb1271d216c4 Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 18 Nov 2022 23:47:30 +0100 Subject: [PATCH] fixup! templates: move includes into *-header.html files --- website/agenda/planung/show-playout.cgi | 5 +---- website/agenda/planung/studios.cgi | 2 +- website/agenda/planung/templates/show-playout-header.html | 1 + 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/website/agenda/planung/show-playout.cgi b/website/agenda/planung/show-playout.cgi index 91c474e..20c620e 100755 --- a/website/agenda/planung/show-playout.cgi +++ b/website/agenda/planung/show-playout.cgi @@ -55,14 +55,11 @@ $params = $request->{params}->{checked}; unless ( params::isJson() ) { my $headerParams = uac::set_template_permissions( $request->{permissions}, $params ); $headerParams->{loc} = localization::get( $config, { user => $user, file => 'menu' } ); - template::process( $config, 'print', template::check( $config, 'default.html' ), + template::process( $config, 'print', template::check( $config, 'show-playout-header.html' ), $headerParams ); } return unless uac::check( $config, $params, $user_presets ) == 1; -template::process( $config, 'print', template::check( $config, 'show-playout-header.html' ), $headerParams ) - unless (params::isJson); - my $permissions = $request->{permissions}; $params->{action} = '' unless defined $params->{action}; $params->{error} = $error || ''; diff --git a/website/agenda/planung/studios.cgi b/website/agenda/planung/studios.cgi index cee39c8..4e6904d 100755 --- a/website/agenda/planung/studios.cgi +++ b/website/agenda/planung/studios.cgi @@ -53,7 +53,7 @@ $params = $request->{params}->{checked}; #process header my $headerParams = uac::set_template_permissions( $request->{permissions}, $params ); $headerParams->{loc} = localization::get( $config, { user => $user, file => 'menu' } ); -template::process( $config, 'print', template::check( $config, 'studio-headers.html' ), $headerParams ); +template::process( $config, 'print', template::check( $config, 'studios-header.html' ), $headerParams ); return unless uac::check( $config, $params, $user_presets ) == 1; if ( defined $params->{action} ) { diff --git a/website/agenda/planung/templates/show-playout-header.html b/website/agenda/planung/templates/show-playout-header.html index eff6b09..9c8ccca 100644 --- a/website/agenda/planung/templates/show-playout-header.html +++ b/website/agenda/planung/templates/show-playout-header.html @@ -1,3 +1,4 @@ +