Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f2d37e5a

Von Sven Schöling vor etwa 12 Jahren hinzugefügt

  • ID f2d37e5aace3662d45b8f66401713d637a125254
  • Vorgänger a888cd08
  • Nachfolger a3fb5023

template partial rendern

Unterschiede anzeigen:

SL/Layout/Javascript.pm
38 38
  $callback               = URI->new($callback)->rel($callback) if $callback;
39 39
  $callback               = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
40 40

  
41
  $form->parse_html_template("menu/menunew", {
42
#  $self->render("menu/menunew", { no_menu => 1, no_output => 1 }, # buggy, no idea why
41
  $self->render("menu/menunew", { partial => 1, no_output => 1 },
43 42
    force_ul_width  => 1,
44 43
    date            => $self->clock_line,
45 44
    menu_items      => $self->acc_menu,
46 45
    callback        => $callback,
47
  });
46
  );
48 47
}
49 48

  
50 49
sub clock_line {
templates/webpages/menu/menunew.html
24 24
    [<a href="JavaScript:top.main_window.print()">[% 'print' | $T8 %]</a>]
25 25
   </td>
26 26
   <td align="right" nowrap>
27
    [[% 'User' | $T8 %]: [% HTML.escape(login) %] -
27
    [[% 'User' | $T8 %]: [% HTML.escape(MYCONFIG.login) %] -
28 28
    <a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
29 29
    [% date %] <span id='clock_id' style='position:relative'></span>&nbsp;
30 30
   </td>

Auch abrufbar als: Unified diff