From 79344b1efee7e914b8d23bd0dfd92664cf698c11 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 1 Sep 2012 03:43:48 +0200 Subject: W3C Validator (HTML 5 + XHTML 1.1 + CSS level 3) --- lib/FPanel/Interface.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/FPanel/Interface.pm b/lib/FPanel/Interface.pm index 0d2cd0e..72fa29f 100644 --- a/lib/FPanel/Interface.pm +++ b/lib/FPanel/Interface.pm @@ -60,16 +60,15 @@ sub DomainList : StartRunmode { 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 ); + , loop_context_vars => 1 + , global_vars => 1 ); + $template->param( URL => $self->query->url ); $template->param( USER_LOCALPART => $u, USER_DOMAINPART => $d); - $template->param( DOMAIN => [ + $template->param( DOMAINS => [ 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 }; } $domains->sorted('fvd') -- cgit v1.2.3