Header 4.71 KB
Newer Older
1
%# BEGIN BPS TAGGED BLOCK {{{
2
%# 
3
%# COPYRIGHT:
4
%#  
Jesse Vincent's avatar
Jesse Vincent committed
5
%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC 
6
7
8
9
10
11
%#                                          <jesse@bestpractical.com>
%# 
%# (Except where explicitly superseded by other copyright notices)
%# 
%# 
%# LICENSE:
12
13
14
15
%# 
%# This work is made available to you under the terms of Version 2 of
%# the GNU General Public License. A copy of that license should have
%# been provided with this software, but in any event can be snarfed
16
%# from www.gnu.org.
17
18
19
20
21
22
%# 
%# This work is distributed in the hope that it will be useful, but
%# WITHOUT ANY WARRANTY; without even the implied warranty of
%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
%# General Public License for more details.
%# 
23
24
%# You should have received a copy of the GNU General Public License
%# along with this program; if not, write to the Free Software
Jesse Vincent's avatar
Jesse Vincent committed
25
26
27
%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
%# 02110-1301 or visit their web page on the internet at
%# http://www.gnu.org/copyleft/gpl.html.
28
%# 
29
%# 
30
%# CONTRIBUTION SUBMISSION POLICY:
31
%# 
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%# (The following paragraph is not intended to limit the rights granted
%# to you to modify and distribute this software under the terms of
%# the GNU General Public License and is only of importance to you if
%# you choose to contribute your changes and enhancements to the
%# community by submitting them to Best Practical Solutions, LLC.)
%# 
%# By intentionally submitting any modifications, corrections or
%# derivatives to this work, or any other work intended for use with
%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
%# you are the copyright holder for those contributions and you grant
%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
%# royalty-free, perpetual, license to use, copy, create derivative
%# works based on those contributions, and sublicense and distribute
%# those contributions and any derivatives thereof.
%# 
47
%# END BPS TAGGED BLOCK }}}
Jesse Vincent's avatar
Jesse Vincent committed
48
49
50
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Thomas Sibley's avatar
Thomas Sibley committed
51

Ruslan Zakirov's avatar
Ruslan Zakirov committed
52
53
54
55
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>

<title><%$Title%></title>

Ruslan Zakirov's avatar
Ruslan Zakirov committed
56
57
% if ($Refresh && $Refresh > 0) {
    <meta http-equiv="refresh" content="<% $Refresh %>" />
Jesse Vincent's avatar
Jesse Vincent committed
58
59
% }

Ruslan Zakirov's avatar
Ruslan Zakirov committed
60
<link rel="shortcut icon" href="<%RT->Config->Get('WebImagesURL')%>/favicon.png" type="image/png" />
Ruslan Zakirov's avatar
Ruslan Zakirov committed
61
<link rel="stylesheet" href="<%RT->Config->Get('WebPath')%>/NoAuth/css/<% RT->Config->Get( 'WebDefaultStylesheet', $session{'CurrentUser'} ) %>/main-squished.css" type="text/css" media="all" />
Ruslan Zakirov's avatar
Ruslan Zakirov committed
62
<link rel="stylesheet" href="<%RT->Config->Get('WebPath')%>/NoAuth/css/print.css" type="text/css" media="print" />
Jesse Vincent's avatar
Jesse Vincent committed
63

Ruslan Zakirov's avatar
Ruslan Zakirov committed
64
% if ( $RSSAutoDiscovery ) {
65
66
    <link rel="alternate" href="<%$RSSAutoDiscovery%>" type="application/rss+xml" title="RSS RT Search" />
% }
Jesse Vincent's avatar
Jesse Vincent committed
67

Ruslan Zakirov's avatar
Ruslan Zakirov committed
68
69
<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/util.js"></script>
<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/titlebox-state.js"></script>
Ruslan Zakirov's avatar
Ruslan Zakirov committed
70
<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/ahah.js"></script>
Ruslan Zakirov's avatar
Ruslan Zakirov committed
71
72
73
74
<script type="text/javascript"><!--
    onLoadHook("loadTitleBoxStates()");
% if ( $Focus ) {
    onLoadHook("focusElementById('<% $Focus %>')");
75
% }
Ruslan Zakirov's avatar
Ruslan Zakirov committed
76
77
% if ( $onload ) {
    onLoadHook("<% $onload |n %>");
78
% }
Ruslan Zakirov's avatar
Ruslan Zakirov committed
79
80
--></script>

81
% $m->callback( %ARGS, CallbackName => 'Head' );
Ruslan Zakirov's avatar
Ruslan Zakirov committed
82
83

</head>
84
  <body<% $id && qq[ id="comp-$id"] |n %>>
85

86
% if ($ShowBar) {
87
<& /Elements/Logo, %ARGS &>
88

89
90
91
92
93
<div id="quickbar">
  <div id="quick-personal">
    <span class="hide"><a href="#skipnav"><&|/l&>Skip Menu</&></a> | </span>
% if ($session{'CurrentUser'}->Name) {
    <&|/l, "<span>".$session{'CurrentUser'}->Name."</span>" &>Logged in as [_1]</&>
Ruslan Zakirov's avatar
Ruslan Zakirov committed
94
95
%     if ( $session{'CurrentUser'}->HasRight( Right => 'ModifySelf', Object => $RT::System ) ) {
    | <a href="<%RT->Config->Get('WebPath')%><%$Prefs%>"><&|/l&>Preferences</&></a>
Thomas Sibley's avatar
Fix    
Thomas Sibley committed
96
%     }
97
98
% } else {
    <&|/l&>Not logged in.</&>
Jesse Vincent's avatar
Jesse Vincent committed
99
% }
100
% $m->callback( %ARGS );
101
% unless (!$session{'CurrentUser'}->Name
102
103
%         or (RT->Config->Get('WebExternalAuth') and !RT->Config->Get('WebFallbackToInternalAuth'))) {
    | <a  href="<%RT->Config->Get('WebPath')%>/NoAuth/Logout.html<%$URL ? "?URL=".$URL : ''%>"><&|/l&>Logout</&></a>
Jesse Vincent's avatar
Jesse Vincent committed
104
% }
105
  </div>
106
% }
Jesse Vincent's avatar
Jesse Vincent committed
107

108
<%INIT>
109
110
$r->headers_out->{'Pragma'} = 'no-cache';
$r->headers_out->{'Cache-control'} = 'no-cache';
111
112
113
114
115
116
117
118

my $id = $m->request_comp->path;
$id =~ s|^/||g;
$id =~ s|/|-|g;
$id =~ s|\.html$||g;
$id =~ s|index$||g
    if $id ne 'index';
$id =~ s|-$||g;
Jesse Vincent's avatar
Jesse Vincent committed
119
120
</%INIT>

121
<%ARGS>
122
$Prefs => '/User/Prefs.html'
123
124
#$Focus => 'focus'
$Focus => ''
125
$Title =>  'RT'
Jesse Vincent's avatar
Jesse Vincent committed
126
$Code => undef
127
$Refresh => 0
Jesse Vincent's avatar
Jesse Vincent committed
128
$Why => undef
129
$ShowBar => 1
Linda Julien's avatar
Linda Julien committed
130
$URL => undef
131
$RSSAutoDiscovery => undef
132
$onload => undef
133
</%ARGS>