diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-01 03:43:48 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-01 03:57:00 +0200 |
commit | 79344b1efee7e914b8d23bd0dfd92664cf698c11 (patch) | |
tree | f58163e1eb3d60c3fcc5aa36cfb0389f7528b63b /lib | |
parent | cd2e069816416dd42ed2528e4843c07309a31f27 (diff) |
W3C Validator (HTML 5 + XHTML 1.1 + CSS level 3)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/FPanel/Interface.pm | 9 |
1 files changed, 4 insertions, 5 deletions
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') |