templates: move includes into *-header.html files

This commit is contained in:
Milan
2022-11-18 00:49:34 +01:00
parent 03dc439c80
commit 0a3656f734
28 changed files with 78 additions and 89 deletions

View File

@@ -87,11 +87,8 @@ $headerParams->{loc} = localization::get( $config, { user => $user, file => 'men
template::process( $config, 'print', template::check( $config, 'default.html' ), $headerParams );
exit unless uac::check( $config, $params, $user_presets ) == 1;
print q{
<script src="js/audio-recordings.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/audio-recordings.css" type="text/css" />
} unless (params::isJson);
template::process( $config, 'print', template::check( $config, 'audio-recordings-header.html' ), $headerParams )
unless params::isJson;
my $permissions = $request->{permissions};
$params->{action} = '' unless defined $params->{action};