2024-09-12 20:48:08 +02:00
|
|
|
% layout 'default', title => "Sme server 2 - Disk Usage", share_dir => './';
|
|
|
|
%#
|
2024-09-13 17:36:57 +02:00
|
|
|
%# Generated by SM2Gen version:0.8 Chameleon version:3.8.1 On Python:3.12.3 at 2024-09-13 15:33
|
2024-09-12 20:48:08 +02:00
|
|
|
%#
|
|
|
|
% content_for 'module' => begin
|
2024-09-13 17:36:57 +02:00
|
|
|
<div id="module" class="module Diskusage-panel">
|
2024-09-12 20:48:08 +02:00
|
|
|
|
|
|
|
% if ($config->{debug} == 1) {
|
|
|
|
<p>
|
|
|
|
%= dumper $c->current_route
|
|
|
|
</p>
|
|
|
|
% }
|
|
|
|
|
|
|
|
<h1><%=$title%></h1>
|
|
|
|
|
|
|
|
% if ( stash('modul') ) {
|
|
|
|
%= $c->render_to_string(inline => stash('modul') );
|
|
|
|
% }
|
|
|
|
|
|
|
|
%if (${prefix}_data->{first}) {
|
|
|
|
<br><p>
|
|
|
|
%=$c->render_to_string(inline =>$c->l(${prefix}_data->{first}))
|
|
|
|
</p>
|
|
|
|
|
|
|
|
%} elsif (${prefix}_data->{success}) {
|
|
|
|
<div class='sme-border'>
|
|
|
|
<h2> Operation Status Report</h2><p>
|
|
|
|
%= $c->l(${prefix}_data->{success});
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
%} elsif (${prefix}_data->{error}) {
|
|
|
|
<div class='sme-error'>
|
|
|
|
<h2> Operation Status Report - error</h2><p>
|
|
|
|
%= $c->l(${prefix}_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 (${prefix}_data->{trt} eq "PARAMS") {
|
|
|
|
%= include 'partials/_du_PARAMS'
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
%end
|