78 lines
2.0 KiB
Plaintext
Raw Normal View History

%#
2025-06-17 15:33:22 +02:00
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-12-01 15:22:43
%#
2025-04-15 16:30:33 +02:00
% layout 'AdminLTE', title => "Sme server 2 - Letsencrypt certificate", share_dir => './';
%# css specific to this panel:
2025-04-15 16:30:33 +02:00
% content_for 'module' => begin
2025-04-15 16:30:33 +02:00
2025-06-17 15:33:22 +02:00
<!-- reetp needs moving - probabyl not required -->
2025-04-18 15:11:03 +02:00
2025-06-17 15:33:22 +02:00
<!-- stylesheet '/css/letsencrypt.css' -->
2025-04-15 16:30:33 +02:00
2025-04-18 15:11:03 +02:00
<div class="card-body">
% if (config->{debug} == 1) {
2025-04-15 16:30:33 +02:00
<pre>
2025-06-17 15:33:22 +02:00
<%= dumper $c->current_route %>
<%= dumper $lets_data->{trt} %>
2025-04-15 16:30:33 +02:00
</pre>
% }
2025-06-17 15:33:22 +02:00
<h1><%=$title%></h1>
% if ( stash('modul')) {
2025-06-17 15:33:22 +02:00
<br>
<div>
<%= $c->render_to_string(inline => stash('modul') ); %>
</div>
% }
2025-06-17 15:33:22 +02:00
% if ($c->stash('first')) {
<br>
<div>
<%=$c->render_to_string(inline =>$c->l($c->stash('first'))) %>
</div>
2025-04-15 16:30:33 +02:00
2025-06-17 15:33:22 +02:00
% } elsif ($c->stash('success')) {
<div class="text-success">
<h2><%=$c->l('lets_Status_Report') %></h2>
<div>
<%= $c->l($c->stash('success')); %>
</div>
2025-04-15 16:30:33 +02:00
</div>
2025-06-17 15:33:22 +02:00
% } elsif ($c->stash('error')) {
<div class="text-danger">
<h2><%=$c->l('lets_Error_Status_Report') %></h2>
<div>
<%= $c->l($c->stash('error')); %>
</div>
2025-04-15 16:30:33 +02:00
</div>
2025-06-17 15:33:22 +02:00
% }
2025-04-15 16:30:33 +02:00
%#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") {
2025-06-17 15:33:22 +02:00
<%= include 'partials/_lets_LIST' %>
% }
2025-04-15 16:30:33 +02:00
% if ($lets_data->{trt} eq "PARAMS") {
2025-06-17 15:33:22 +02:00
<%= include 'partials/_lets_PARAMS' %>
% }
2025-04-15 16:30:33 +02:00
% if ($lets_data->{trt} eq "CHECKALLDOMAINS") {
2025-06-17 15:33:22 +02:00
<%= include 'partials/_lets_CHECKALLDOMAINS' %>
% }
2025-04-15 16:30:33 +02:00
% if ($lets_data->{trt} eq "CHECKALLENABLEDDOMAINS") {
2025-06-17 15:33:22 +02:00
<%= include 'partials/_lets_CHECKALLENABLEDDOMAINS' %>
% }
2025-04-15 16:30:33 +02:00
% if ($lets_data->{trt} eq "CHECKONEDOMAIN") {
2025-06-17 15:33:22 +02:00
<%= include 'partials/_lets_CHECKONEDOMAIN' %>
% }
</div>
%end