Header 4.05 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-2005 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
25
26
%# You should have received a copy of the GNU General Public License
%# along with this program; if not, write to the Free Software
%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%# 
27
%# 
28
%# CONTRIBUTION SUBMISSION POLICY:
29
%# 
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%# (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.
%# 
45
%# END BPS TAGGED BLOCK }}}
Jesse Vincent's avatar
Jesse Vincent committed
46
47
48
<!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
49

Jesse Vincent's avatar
Jesse Vincent committed
50
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
51
52
  <head>
    <title><%$Title%></title>
53
% if ($Refresh > 0) {
54
    <meta http-equiv="refresh" content="<%$Refresh%>" />
Jesse Vincent's avatar
Jesse Vincent committed
55
% }
56
57
58
59
    <link rel="shortcut icon" href="<%$RT::WebImagesURL%>/favicon.png" type="image/png">
    <link type="text/css" rel="stylesheet" href="<%$RT::WebPath%>/NoAuth/css/main.css" />
    <script>
        function hideshow(num) {
60
61
            var idstring = "element-" + num;
            var chunk = document.getElementById(idstring);
62
            if ( chunk.style.display == "none")  {
63
                chunk.style.display = chunk.style.tag;
64
65
66
67
            } else {
                chunk.style.tag = chunk.style.display;
                chunk.style.display = "none";
            }
68
            return false;
69
70
        }   
    </script>
71
<& /Elements/Callback, _CallbackName => 'Head', %ARGS &>
72
73
  </head>
  <body
Jesse Vincent's avatar
Jesse Vincent committed
74
% if ($Focus) {
Jesse Vincent's avatar
Jesse Vincent committed
75
onload="
Jesse Vincent's avatar
Jesse Vincent committed
76
77
78
79
80
    var tmp = (document.getElementsByName('<% $Focus %>'));
    if (tmp.length > 0) tmp[tmp.length-1].focus();
"
% }
>
81

82
% if ($ShowBar) {
83
84
85
86
87
88
89
90
<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]</&>
% } else {
    <&|/l&>Not logged in.</&>
% }
Jesse Vincent's avatar
Jesse Vincent committed
91
%if ($session{'CurrentUser'}->HasRight( Right => 'ModifySelf', Object => $RT::System )) {
92
    | <a href="<%$RT::WebPath%><%$Prefs%>"><&|/l&>Preferences</&></a>
Jesse Vincent's avatar
Jesse Vincent committed
93
% }
94
95
96
97
  <& /Elements/Callback, %ARGS &>
% unless (!$session{'CurrentUser'}->Name
%         or ($RT::WebExternalAuth and !$RT::WebFallbackToInternalAuth)) {
    | <a  href="<%$RT::WebPath%>/NoAuth/Logout.html<%$URL ? "?URL=".$URL : ''%>"><&|/l&>Logout</&></a>
Jesse Vincent's avatar
Jesse Vincent committed
98
% }
99
  </div>
100
% }
Jesse Vincent's avatar
Jesse Vincent committed
101

102
<%INIT>
103
104
$r->headers_out->{'Pragma'} = 'no-cache';
$r->headers_out->{'Cache-control'} = 'no-cache';
Jesse Vincent's avatar
Jesse Vincent committed
105
106
</%INIT>

107
<%ARGS>
108
$Prefs => '/User/Prefs.html'
109
110
#$Focus => 'focus'
$Focus => ''
111
$Title =>  'RT'
Jesse Vincent's avatar
Jesse Vincent committed
112
$Code => undef
113
$Refresh => 0
Jesse Vincent's avatar
Jesse Vincent committed
114
$Why => undef
115
#$BgColor => '#ffffff'
116
$ShowBar => 1
117
#$LoggedIn => 1
Linda Julien's avatar
Linda Julien committed
118
$URL => undef
119
</%ARGS>