2024-09-12 20:48:08 +02:00
|
|
|
%#
|
2024-09-20 18:31:09 +02:00
|
|
|
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:30:21
|
2024-09-12 20:48:08 +02:00
|
|
|
%#
|
2024-09-20 18:31:09 +02:00
|
|
|
% layout 'default', title => "Sme server 2 - Disk Usage", share_dir => './';
|
|
|
|
%# css specific to this panel:
|
2024-09-12 20:48:08 +02:00
|
|
|
% content_for 'module' => begin
|
2024-09-20 18:31:09 +02:00
|
|
|
%= stylesheet '/css/diskusage.css'
|
2024-09-15 13:06:34 +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') );
|
|
|
|
% }
|
|
|
|
|
2024-09-14 12:39:26 +02:00
|
|
|
%if ($du_data->{first}) {
|
2024-09-12 20:48:08 +02:00
|
|
|
<br><p>
|
2024-09-14 12:39:26 +02:00
|
|
|
%=$c->render_to_string(inline =>$c->l($du_data->{first}))
|
2024-09-12 20:48:08 +02:00
|
|
|
</p>
|
|
|
|
|
2024-09-14 12:39:26 +02:00
|
|
|
%} elsif ($du_data->{success}) {
|
2024-09-12 20:48:08 +02:00
|
|
|
<div class='sme-border'>
|
|
|
|
<h2> Operation Status Report</h2><p>
|
2024-09-14 12:39:26 +02:00
|
|
|
%= $c->l($du_data->{success});
|
2024-09-12 20:48:08 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2024-09-14 12:39:26 +02:00
|
|
|
%} elsif ($du_data->{error}) {
|
2024-09-12 20:48:08 +02:00
|
|
|
<div class='sme-error'>
|
|
|
|
<h2> Operation Status Report - error</h2><p>
|
2024-09-14 12:39:26 +02:00
|
|
|
%= $c->l($du_data->{error});
|
2024-09-12 20:48:08 +02:00
|
|
|
</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'
|
|
|
|
|
2024-09-14 12:39:26 +02:00
|
|
|
% if ($du_data->{trt} eq "PARAMS") {
|
2024-09-12 20:48:08 +02:00
|
|
|
%= include 'partials/_du_PARAMS'
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
%end
|