fixup! templates: move includes into *-header.html files
This commit is contained in:
@@ -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 || '';
|
||||
|
||||
@@ -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} ) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<TMPL_INCLUDE default.html>
|
||||
<script src="js/show-playout.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="css/show-playout.css" type="text/css" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user