X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fhtml%2FElements%2FHeader;h=a32784e35ac278d7f4b8687dced7b132aa047e6e;hb=a404926bbec025159de0611ce95783488a8bd241;hp=f40d45ee11be3874629b645b18fd94eeb3b5a2e4;hpb=3a651bfd3784bdbb4367b3d6385ccee33e8ebe5c;p=freeside.git diff --git a/rt/html/Elements/Header b/rt/html/Elements/Header index f40d45ee1..a32784e35 100644 --- a/rt/html/Elements/Header +++ b/rt/html/Elements/Header @@ -45,102 +45,17 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} - - - - -<%$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
-
-
-
+<% include( '/elements/header.html', { + 'title' => $Title, + 'head' => $head, + 'nobr' => 1, + 'nocss' => 1, + }) |n +%> + +%# if ($session{'CurrentUser'}->HasRight( Right => 'ModifySelf', Object => $RT::System )) { +%# | <&|/l&>Preferences +%# } <%INIT> $r->headers_out->{'Pragma'} = 'no-cache'; @@ -155,6 +70,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>