Initial Upload
This commit is contained in:
46
Templates/layout.html.ep.tem
Normal file
46
Templates/layout.html.ep.tem
Normal file
@@ -0,0 +1,46 @@
|
||||
% layout 'default', title => "Sme server 2 - ${MenuDescription}", share_dir => './';
|
||||
% content_for 'module' => begin
|
||||
<div id="module" class="module ${PackageName}-panel">
|
||||
|
||||
% 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.
|
||||
<tal:block tal:repeat="condition conditions">
|
||||
% if ($$${prefix}_data->{trt} eq "${condition}") {
|
||||
%= include 'partials/_${prefix}_${condition}'
|
||||
%}
|
||||
</tal:block>
|
||||
|
||||
|
||||
</div>
|
||||
%end
|
Reference in New Issue
Block a user