X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fhtml%2FElements%2FHeader;h=ffe653666ccb33b6a2607bb8a1ff85a3cd1b821b;hp=bf6fa46fa84d476bf3055f5911f097c25a90dc9d;hb=70569273833d91085c6c562865a78a08ddde49a1;hpb=0cc20c3d66e50d640422c2d587d97ddf7768493b diff --git a/rt/html/Elements/Header b/rt/html/Elements/Header index bf6fa46fa..ffe653666 100644 --- a/rt/html/Elements/Header +++ b/rt/html/Elements/Header @@ -45,102 +45,16 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} - +<% include( '/elements/header.html', { + 'title' => $Title, + 'head' => $head, + 'nobr' => 1, + }) |n +%> - - -<%$Title%> - -% if ($Refresh && $Refresh > 0) { - -% } - - - - - -% if ( $RSSAutoDiscovery ) { - -% } - - - - - - -<& /Elements/Callback, _CallbackName => 'Head', %ARGS &> - - - - > - -% if ($ShowBar) { - - - - - - - - - - - - - -
freeside<% &RT::URI::freeside::FreesideGetConfig('company_name') || 'ExampleCo' %> - -
-
- <&|/l&>Skip Menu | -% if ($session{'CurrentUser'}->Name) { - <&|/l, "".$session{'CurrentUser'}->Name."" &>Logged in as [_1] -% if ($session{'CurrentUser'}->HasRight( Right => 'ModifySelf', Object => $RT::System )) { - | <&|/l&>Preferences -% } -% } else { - <&|/l&>Not logged in. -% } - <& /Elements/Callback, %ARGS &> -% unless (!$session{'CurrentUser'}->Name -% or ($RT::WebExternalAuth and !$RT::WebFallbackToInternalAuth)) { - | <&|/l&>Logout -% } -
-% } - -
- - - - - - - -
- - Freeside v<% &RT::URI::freeside::FreesideVersion() %>
- ">Documentation
-
-
- - RT v<% $RT::VERSION %>
- Documentation
-
-
-
+%# if ($session{'CurrentUser'}->HasRight( Right => 'ModifySelf', Object => $RT::System )) { +%# | <&|/l&>Preferences +%# } <%INIT> $r->headers_out->{'Pragma'} = 'no-cache'; @@ -155,6 +69,45 @@ $id =~ s|\.html$||g; $id =~ s|index$||g if $id ne 'index'; $id =~ s|-$||g; + +my $head = ''; + +if ($Refresh && $Refresh > 0) { + $head .= ''; +} + +$head .= < + + +END + +if ( $RSSAutoDiscovery ) { + $head .= qq(); +} + +$head .= < + + +'; + +$head .= $m->scomp( '/Elements/Callback', _CallbackName => 'Head', %ARGS ); + +my $etc = ''; +$etc .= qq[ id="comp-$id"] if $id; + <%ARGS>