%= content_for 'head_contrib' %= content_for 'refresh' %= include 'common_js' %= include 'common_css' %# panel specific css file % my $controller = stash('controller'); % if ($controller) { % my $css_path = "css/$controller.css"; %# Use the url_for helper to generate the correct static file URL % if (app->static->file($css_path)) { "> % } % } % if ( not defined $c->session->{lang} ) { % SrvMngr::init_session ( $c ); % }
%= include 'partials/_app_content_breadcrumb' %#= dumper $c->current_route % if ($c->current_route ne 'login') { %= include 'partials/_panel_card_top' %= include 'partials/_panel_card_header' % } %= content 'module' % if ($c->current_route ne 'login') { %= include 'partials/_panel_card_footer' %= include 'partials/_panel_card_bottom' % }
%# Specific panel js code % $controller = stash('controller'); % if ($controller) { % my $js_path = "js/$controller.js"; %# Use the url_for helper to generate the correct static file URL % if (app->static->file($js_path)) { % } % }