From f2d37e5aace3662d45b8f66401713d637a125254 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 16 Oct 2012 16:32:07 +0200 Subject: [PATCH] template partial rendern --- SL/Layout/Javascript.pm | 5 ++--- templates/webpages/menu/menunew.html | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/SL/Layout/Javascript.pm b/SL/Layout/Javascript.pm index 1785a198b..cdc6491aa 100644 --- a/SL/Layout/Javascript.pm +++ b/SL/Layout/Javascript.pm @@ -38,13 +38,12 @@ sub display { $callback = URI->new($callback)->rel($callback) if $callback; $callback = "login.pl?action=company_logo" if $callback =~ /^(\.\/)?$/; - $form->parse_html_template("menu/menunew", { -# $self->render("menu/menunew", { no_menu => 1, no_output => 1 }, # buggy, no idea why + $self->render("menu/menunew", { partial => 1, no_output => 1 }, force_ul_width => 1, date => $self->clock_line, menu_items => $self->acc_menu, callback => $callback, - }); + ); } sub clock_line { diff --git a/templates/webpages/menu/menunew.html b/templates/webpages/menu/menunew.html index 0a33c65b1..630667f0c 100644 --- a/templates/webpages/menu/menunew.html +++ b/templates/webpages/menu/menunew.html @@ -24,7 +24,7 @@ $(clockon); [[% 'print' | $T8 %]] - [[% 'User' | $T8 %]: [% HTML.escape(login) %] - + [[% 'User' | $T8 %]: [% HTML.escape(MYCONFIG.login) %] - [% 'logout' | $T8 %]] [% date %]   -- 2.20.1