2024-10-18 20:01:59 +02:00
|
|
|
%#
|
2024-11-29 17:15:55 +01:00
|
|
|
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-11-29 15:59:19
|
2024-10-18 20:01:59 +02:00
|
|
|
%#
|
2024-11-04 18:08:38 +01:00
|
|
|
% layout 'default', title => "Sme server 2 - Letsencrypt certificate", share_dir => './';
|
2024-10-18 20:01:59 +02:00
|
|
|
%# css specific to this panel:
|
|
|
|
% content_for 'module' => begin
|
|
|
|
%= stylesheet '/css/letsencrypt.css'
|
|
|
|
<div id="module" class="module Letsencrypt-panel">
|
|
|
|
|
|
|
|
% if ($config->{debug} == 1) {
|
2024-11-22 15:00:54 +01:00
|
|
|
<pre>
|
2024-10-18 20:01:59 +02:00
|
|
|
%= dumper $c->current_route
|
2024-11-27 17:18:56 +01:00
|
|
|
%= dumper $lets_data->{trt}
|
2024-11-22 15:00:54 +01:00
|
|
|
</pre>
|
2024-10-18 20:01:59 +02:00
|
|
|
% }
|
|
|
|
|
|
|
|
<h1><%=$title%></h1>
|
|
|
|
|
2024-11-27 17:18:56 +01:00
|
|
|
% if ( stash('modul')) {
|
2024-10-18 20:01:59 +02:00
|
|
|
%= $c->render_to_string(inline => stash('modul') );
|
|
|
|
% }
|
|
|
|
|
2024-11-27 17:18:56 +01:00
|
|
|
%if ($c->stash('first')) {
|
2024-10-18 20:01:59 +02:00
|
|
|
<br><p>
|
2024-11-27 17:18:56 +01:00
|
|
|
%=$c->render_to_string(inline =>$c->l($c->stash('first')))
|
2024-10-18 20:01:59 +02:00
|
|
|
</p>
|
|
|
|
|
2024-11-27 17:18:56 +01:00
|
|
|
%} elsif ($c->stash('success')) {
|
2024-11-29 17:15:55 +01:00
|
|
|
<div class='success '>
|
2024-11-27 17:18:56 +01:00
|
|
|
<h2><%=$c->l('lets_Status_Report') %></h2><p>
|
|
|
|
%= $c->l($c->stash('success'));
|
2024-10-18 20:01:59 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2024-11-27 17:18:56 +01:00
|
|
|
%} elsif ($c->stash('error')) {
|
2024-10-18 20:01:59 +02:00
|
|
|
<div class='sme-error'>
|
2024-11-27 17:18:56 +01:00
|
|
|
<h2><%=$c->l('lets_Error_Status_Report') %></h2><p>
|
|
|
|
%= $c->l($c->stash('error'));
|
2024-10-18 20:01:59 +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'
|
|
|
|
|
|
|
|
% if ($lets_data->{trt} eq "LIST") {
|
|
|
|
%= include 'partials/_lets_LIST'
|
|
|
|
%}
|
|
|
|
|
|
|
|
% if ($lets_data->{trt} eq "PARAMS") {
|
|
|
|
%= include 'partials/_lets_PARAMS'
|
|
|
|
%}
|
|
|
|
|
2024-11-04 18:08:38 +01:00
|
|
|
% if ($lets_data->{trt} eq "CHECKALLDOMAINS") {
|
|
|
|
%= include 'partials/_lets_CHECKALLDOMAINS'
|
|
|
|
%}
|
|
|
|
|
|
|
|
% if ($lets_data->{trt} eq "CHECKALLENABLEDDOMAINS") {
|
|
|
|
%= include 'partials/_lets_CHECKALLENABLEDDOMAINS'
|
|
|
|
%}
|
|
|
|
|
2024-11-13 17:45:14 +01:00
|
|
|
% if ($lets_data->{trt} eq "CHECKONEDOMAIN") {
|
|
|
|
%= include 'partials/_lets_CHECKONEDOMAIN'
|
|
|
|
%}
|
|
|
|
|
2024-10-18 20:01:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2024-11-04 18:08:38 +01:00
|
|
|
%end
|