X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FLayout%2FTop.pm;h=e2e5d2df633292378235b7dacc0941ef2d1acb01;hb=9af3ce1ca10555dff25e4762d2eb1e7fa0c1e877;hp=533977450917242cd36642959b169bcec61189a4;hpb=b6fd15a8dc44f9b09d5a2bce766cda14b87c6e13;p=kivitendo-erp.git diff --git a/SL/Layout/Top.pm b/SL/Layout/Top.pm index 533977450..e2e5d2df6 100644 --- a/SL/Layout/Top.pm +++ b/SL/Layout/Top.pm @@ -6,14 +6,47 @@ use parent qw(SL::Layout::Base); sub pre_content { my ($self) = @_; - $self->SUPER::render('menu/header', { partial => 1, no_output => 1 }, - now => DateTime->now_local, - is_fastcgi => scalar($::dispatcher->interface_type =~ /fastcgi/i), - is_links => scalar($ENV{HTTP_USER_AGENT} =~ /links/i)); + $self->presenter->render('menu/header', + now => DateTime->now_local, + is_fastcgi => $::dispatcher ? scalar($::dispatcher->interface_type =~ /fastcgi/i) : 0, + is_links => scalar($ENV{HTTP_USER_AGENT} =~ /links/i), + ); } sub stylesheets { -# 'frame_header/header.css'; + 'frame_header/header.css'; +} + +sub javascripts { + ('jquery-ui.js', 'quicksearch_input.js') x!! $::auth->assert('customer_vendor_edit', 1), + ('jquery-ui.js', 'glquicksearch.js') x!! $::auth->assert('general_ledger', 1) } 1; + +__END__ + +=encoding utf-8 + +=head1 NAME + +SL::Layout::Top - Top line in classic and v3 menu. + +=head1 DOM MODEL + +The entire top line is rendered into a div with id C. The following classes are used: + + frame-header-element: any continuous block of entries + frame-header-left: the left floating part + frame-header-right: the right floating part + frame-header-center: the centered part + +=head1 BUGS + +none yet. :) + +=head1 AUTHOR + +Sven Schoeling Es.schoeling@linet-services.deE + +=cut