SM2Gen/Targets/Diskusage/diskusage.html.ep

53 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-10-18 16:34:35 +02:00
%#
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-23 09:05:54
%#
% layout 'default', title => "Sme server 2 - Diskusage", share_dir => './';
%# css specific to this panel:
% content_for 'module' => begin
%= stylesheet '/css/diskusage.css'
<div id="module" class="module Diskusage-panel">
% if ($config->{debug} == 1) {
<p>
%= dumper $c->current_route
</p>
% }
<h1><%=$title%></h1>
% if ( stash('modul') ) {
%= $c->render_to_string(inline => stash('modul') );
% }
%if ($d_data->{first}) {
<br><p>
%=$c->render_to_string(inline =>$c->l($d_data->{first}))
</p>
%} elsif ($d_data->{success}) {
<div class='sme-border'>
<h2> Operation Status Report</h2><p>
%= $c->l($d_data->{success});
</p>
</div>
%} elsif ($d_data->{error}) {
<div class='sme-error'>
<h2> Operation Status Report - error</h2><p>
%= $c->l($d_data->{error});
</p>
</div>
%}
%#Routing to partials according to trt parameter.
%#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement'
% if ($d_data->{trt} eq "PARAMS") {
%= include 'partials/_d_PARAMS'
%}
</div>
%end