template partial rendern
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 16 Oct 2012 14:32:07 +0000 (16:32 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 17 Oct 2012 14:04:00 +0000 (16:04 +0200)
SL/Layout/Javascript.pm
templates/webpages/menu/menunew.html

index 1785a19..cdc6491 100644 (file)
@@ -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 {
index 0a33c65..630667f 100644 (file)
@@ -24,7 +24,7 @@ $(clockon);
     [<a href="JavaScript:top.main_window.print()">[% 'print' | $T8 %]</a>]
    </td>
    <td align="right" nowrap>
-    [[% 'User' | $T8 %]: [% HTML.escape(login) %] -
+    [[% 'User' | $T8 %]: [% HTML.escape(MYCONFIG.login) %] -
     <a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
     [% date %] <span id='clock_id' style='position:relative'></span>&nbsp;
    </td>