51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
% layout 'default', title => "Sme server 2 - Disk Usage", share_dir => './';
|
|
%#
|
|
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-14 12:09
|
|
%#
|
|
% content_for 'module' => begin
|
|
<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 ($du_data->{first}) {
|
|
<br><p>
|
|
%=$c->render_to_string(inline =>$c->l($du_data->{first}))
|
|
</p>
|
|
|
|
%} elsif ($du_data->{success}) {
|
|
<div class='sme-border'>
|
|
<h2> Operation Status Report</h2><p>
|
|
%= $c->l($du_data->{success});
|
|
</p>
|
|
</div>
|
|
|
|
%} elsif ($du_data->{error}) {
|
|
<div class='sme-error'>
|
|
<h2> Operation Status Report - error</h2><p>
|
|
%= $c->l($du_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 ($du_data->{trt} eq "PARAMS") {
|
|
%= include 'partials/_du_PARAMS'
|
|
%}
|
|
|
|
|
|
|
|
</div>
|
|
%end
|