Files
smeserver-manager/root/usr/share/smanager/themes/default/templates/embedded.html.ep
Brian Read 022b85bd69 * Thu Sep 25 2025 Brian Read <brianr@koozali.org> 11.0.0-118.sme
- Remove inline style for legacy panel [SME: 13177]
2025-09-25 10:35:37 +01:00

31 lines
1.0 KiB
Plaintext

% layout 'default', title => "Sme server 2 - embedded";
% content_for 'module' => begin
<div id='module' class='module module-panel'>
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
</p>
% }
% if ( stash 'error' ) {
<br><div class=sme-error>
%= $c->render_to_string( inline => stash 'error' )
</div>
% }
<h1> Embedded - <%= $title %></h1><br>
<p>If the legacy panel does not appear, then you may not be logged into the original Server manager.<br />You can log in by clicking <a href="/server-manager" target='_blank'>here</a>.</p>
% my $height = $c->stash('height') || '600px';
% if ( $height !~ /px$/ ) { $height = $height . 'px'; }
% # Add the height as a data attribute
<object id="legacy-embedded"
class="legacy-embedded"
data="<%= $c->stash('modul') %>"
data-legacy-height="<%= $height %>"
title="<%= $c->stash('title') %>"
type="text/html">
<%= $c->stash('title') %> not found
</object>
</div>
% end