aboutsummaryrefslogtreecommitdiffstats
path: root/lib/FPanel/Interface.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/FPanel/Interface.pm')
-rw-r--r--lib/FPanel/Interface.pm14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/FPanel/Interface.pm b/lib/FPanel/Interface.pm
index adac0f0..0d2cd0e 100644
--- a/lib/FPanel/Interface.pm
+++ b/lib/FPanel/Interface.pm
@@ -18,7 +18,9 @@ sub cgiapp_init {
sub index : Runmode {
my $self = shift;
- my $template = $self->load_tmpl("index.html");
+ my $template = $self->load_tmpl('index.html'
+ , cache => 1
+ , utf8 => 1 );
my $domain = (split /\//, $ENV{PATH_INFO},3)[1];
$template->param({
NAME => 'INDEX',
@@ -55,19 +57,19 @@ sub DomainList : StartRunmode {
die $domains->error if $domains->code;
- my $template = $self->load_tmpl("domain-list.html");
+ my $template = $self->load_tmpl('domain-list.html'
+ , cache => 1
+ , utf8 => 1
+ , loop_context_vars => 1 );
my $url = $self->query->url();
$template->param( URL => $url );
$template->param( USER_LOCALPART => $u, USER_DOMAINPART => $d);
- my $i = 1;
$template->param( DOMAIN => [
- map { $i = 1-$i;
- { DOMAIN => $_->get_value('fvd')
+ map { { DOMAIN => $_->get_value('fvd')
, PERMS => &list_perms($_, $dn)
, DESCRIPTION => join ("\n", $_->get_value('description'))
, ISACTIVE => $_->get_value('fripostIsStatusActive') eq 'TRUE' ? 1 : 0
, URL => $url
- , ODD => $i
};
}
$domains->sorted('fvd')