X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fheader.html;h=5c4d736d23ab526518d07e982e34fb764a97e6aa;hp=0e69b19cafeb747b0b4555e7fc5c1e7e9d6ff955;hb=43e42a04ae37ca7a84c05d9ff8b94d9f8cde6dcf;hpb=633c48448d9468690b7ad77eb6ff7c660a286658 diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 0e69b19ca..5c4d736d2 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -1,12 +1,26 @@ -% -% my($title, $menubar) = ( shift, shift ); -% my $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc. -% my $head = @_ ? shift : ''; #$head is for things that go in the
section -% my $conf = new FS::Conf; -% -% +<%doc> +Example: + + include( '/elements/header.html', + { + 'title' => 'Title', + 'menubar' => \@menubar, + 'etc' => '', #included in tag, for things like onLoad= + 'head' => '', #included before closing tag + 'nobr' => 0, #1 for no- | - <% $conf->config('company_name') || 'ExampleCo' %> - | -Logged in as <% getotaker %> Preferences + | + | + <% $company_name || 'ExampleCo' %> | -
-
-
| Logged in as <% getotaker %> [ logout ] Preferences +% if ( $conf->config("ticket_system") +% && FS::TicketSystem->access_right(\%session, 'ModifySelf') ) { + | Ticketing preferences +% } + |
+ | |||||||||||
- + | + | -- + + |
+
|
- -% if ( $FS::CurrentUser::CurrentUser->access_right('View invoices') ) { + |
- | + +% } + + | + | |