+ % if (config 'hasJquery') {
+ %= content 'js_toggleMenu'
+ % }
- % if (config 'hasJquery') {
- %= content 'js_toggleMenu'
- % }
-
-
- %= include 'partials/_nav_menu'
-% if ( $c->is_logged_in ) {
- %= include 'partials/_user_menu'
-% }
-% if ( $c->is_admin ) {
- %= include 'partials/_navig2'
-% }
-
-
- %= include 'partials/_info'
-
- % if (flash 'success') {
-
- %= $c->render_to_string(inline => flash 'success')
+
+ %= include 'partials/_nav_menu'
+ % if ( $c->is_logged_in ) {
+ %= include 'partials/_user_menu'
+ % }
+ % if ( $c->is_admin ) {
+ %= include 'partials/_navig2'
+ % }
- % }
- % if ( flash 'warning' ) {
-
- %= $c->render_to_string(inline => flash 'warning')
+
+
+ %= include 'partials/_info'
+ % if (flash 'success') {
+
+ %= $c->render_to_string(inline => flash 'success')
+
+ % }
+ % if ( flash 'warning' ) {
+
+ %= $c->render_to_string(inline => flash 'warning')
+
+ %}
+ % if ( flash 'error' ) {
+
+ %= $c->render_to_string(inline => flash 'error')
+
+ %}
+ %= content 'module'
+ %= include 'partials/_footer'
- %}
- % if ( flash 'error' ) {
-
- %= $c->render_to_string(inline => flash 'error')
-
- %}
- %= content 'module'
- %= include 'partials/_footer'
-
% if (config 'hasJquery') {
@@ -115,7 +110,7 @@
%= content 'js_togglePassword'
% }
-%= javascript '/js/sme-dataTable-setup.js'
+ %= javascript '/js/sme-dataTable-setup.js'
+ %# 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)) {
+
+ % }
+ % }
\ No newline at end of file
diff --git a/root/usr/share/smanager/themes/default/templates/qmailanalog.html.ep b/root/usr/share/smanager/themes/default/templates/qmailanalog.html.ep
index de9122d..539d2c2 100644
--- a/root/usr/share/smanager/themes/default/templates/qmailanalog.html.ep
+++ b/root/usr/share/smanager/themes/default/templates/qmailanalog.html.ep
@@ -1,6 +1,5 @@
% layout 'default', title => "Sme server 2 - qmailanalog";
% content_for 'module' => begin
-%= javascript '/js/qmailanalog.js'
%if (config->{debug} == 1) {
diff --git a/smeserver-manager.spec b/smeserver-manager.spec
index 15912b8..51e2939 100644
--- a/smeserver-manager.spec
+++ b/smeserver-manager.spec
@@ -2,7 +2,7 @@ Summary: Sme server navigation module : manager 2
%define name smeserver-manager
Name: %{name}
%define version 11.0.0
-%define release 99
+%define release 100
Version: %{version}
Release: %{release}%{?dist}
License: GPL
@@ -146,6 +146,9 @@ true
%defattr(-,root,root)
%changelog
+* Tue Jul 01 2025 Brian Read 11.0.0-100.sme
+- Add code in top template default.html.ep to incorporate any panel specific js and css [SME: 13062]
+
* Mon Jun 30 2025 Brian Read 11.0.0-99.sme
- Directory panel - Add in open for config db as required by cacheing [SME: 13059]