% layout 'default', title => "Sme server 2 - wireguard"; % content_for 'module' => begin
% if ($config->{debug} == 1) {

%= dumper $c->current_route %= dumper $wrg_datas

% } % if ( stash 'error' ) {
%= $c->render_to_string(inline => stash 'error')
%}

<%= $title%>

% if ($wrg_datas->{trt} eq 'UPD') { %= include 'partials/_wrg_upd' %} elsif ($wrg_datas->{trt} eq 'NEW') { %= include 'partials/_wrg_new' %} elsif ($wrg_datas->{trt} eq 'QRC') { %= include 'partials/_wrg_qrc' %} elsif ($wrg_datas->{trt} eq 'MOD') { %= include 'partials/_wrg_mod' %} elsif ($wrg_datas->{trt} eq 'REM') { %= include 'partials/_wrg_rem' %} else { %= include 'partials/_wrg_list' %}
%end