diff options
Diffstat (limited to 'rt/html/NoAuth')
61 files changed, 3624 insertions, 25 deletions
diff --git a/rt/html/NoAuth/Logout.html b/rt/html/NoAuth/Logout.html index b6a238bac..49b7a4e59 100644 --- a/rt/html/NoAuth/Logout.html +++ b/rt/html/NoAuth/Logout.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC %# <jesse@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -22,7 +22,9 @@ %# %# 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. +%# 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. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -43,25 +45,29 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -<HTML> -<HEAD> -<TITLE>RT: Logout</TITLE> - <META HTTP-EQUIV="Refresh" CONTENT="0;URL=<%$URL%>"> -</HEAD> -<BODY> +<html> +<head> +<title>RT: Logout</title> + <meta HTTP-EQUIV="Refresh" content="0;URL=<%$URL%>"> +</head> +<body> <p><&|/l&>You have been logged out of RT.</&> -<br> -<br> -<A HREF="<%$URL%>"><&|/l&>You're welcome to login again</&></a> +<br /> +<br /> +<a href="<%$URL%>"><&|/l&>You're welcome to login again</&></a>. +% $m->abort(); + +<%INIT> +$m->comp('/Elements/Callback', _CallbackName => 'BeforeSessionDelete', %ARGS); -<%PERL> if (defined %session) { - tied(%session)->delete; + tied(%session)->delete; } -$m->abort(); -</%PERL> + +$m->comp('/Elements/Callback', _CallbackName => 'AfterSessionDelete', %ARGS); +</%INIT> <%ARGS> $URL => $RT::WebPath."/" diff --git a/rt/html/NoAuth/Reminder.html b/rt/html/NoAuth/Reminder.html index 0793f6c96..dc935d45e 100644 --- a/rt/html/NoAuth/Reminder.html +++ b/rt/html/NoAuth/Reminder.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC %# <jesse@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -22,7 +22,9 @@ %# %# 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. +%# 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. %# %# %# CONTRIBUTION SUBMISSION POLICY: diff --git a/rt/html/NoAuth/css/3.4-compat/body.css b/rt/html/NoAuth/css/3.4-compat/body.css new file mode 100644 index 000000000..6188951a4 --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/body.css @@ -0,0 +1,75 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#body { + margin: 0.5em 0.5em 0 0.5em; + float: left; + width: 80%; +} + +#body h1 { font-size: 1.5em; } +#body h2 { font-size: 1.3em; } +#body h3 { font-size: 1.1em; } +#body h4 { font-size: 1em; } +#body h5 { font-size: 0.9em; } +#body h6 { font-size: 0.8em; } + +#body h1, #body h2, #body h3, #body h4, #body h5, #body h6 { + font-weight: bold; +} + +#body :link { color: black; } + +#body :link, #body :visited { + font-weight: bold; + text-decoration: none; +} + +#body :link:hover, #body :visited:hover { + text-decoration: underline; +} + diff --git a/rt/html/NoAuth/css/3.4-compat/footer.css b/rt/html/NoAuth/css/3.4-compat/footer.css new file mode 100644 index 000000000..4e90c507c --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/footer.css @@ -0,0 +1,61 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#footer { + clear: both; + font-size: 0.8em; + margin-top: 5em; + padding-bottom: 2em; + color: #888; +} + +#footer p { + text-align: right; + padding: 0 0.5em 0 0; + margin: 0; +} + diff --git a/rt/html/NoAuth/css/3.4-compat/forms.css b/rt/html/NoAuth/css/3.4-compat/forms.css new file mode 100644 index 000000000..301f8f3e4 --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/forms.css @@ -0,0 +1,104 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +form .label, form label { + font-weight: bold; +} + +.submit { + background: #069; +%# These borders are needed so the container actually surrounds the floats inside it + border-top: 1px solid white; + border-bottom: 1px solid white; + color: #ffdb00; + font-weight: bold; +} + +.submit .buttons { float: right; } +.submit .extra-buttons { float: left; } +.submit .button { font-size: 0.9em; } + +.submit .submit-clear { clear: right; } + +.input-row { + clear: both; + padding: 0.25em; +} + +%# ComboBox styles... some properties like height and width must be dynamically +%# set in the JS (at least for now). +.combobox { + border: 2px inset ButtonHighlight; + padding-left: 0.5em; + padding-bottom: 0.1em; +} + +.combobox .combo-button { + padding: 0 2px 0 2px; + margin: 0; + background: ButtonFace; + color: ButtonText; + border: 2px outset ButtonHighlight; + cursor: default; + font-size: 8pt; +} + +.combobox .combo-text { + border: none; + margin: 0; + padding: 0; +} + +.combobox .combo-list { + z-index: 200; +} + +#quickbar #topactions form { + display: inline; + margin-left: 2em; +} + diff --git a/rt/html/NoAuth/css/3.4-compat/header.css b/rt/html/NoAuth/css/3.4-compat/header.css new file mode 100644 index 000000000..a8e3184ce --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/header.css @@ -0,0 +1,88 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#header #page-menu { + display: none; +} + +#header { + background: #4282b5; + margin-top: 0; + padding-bottom: 0.2em; + float: left; + width: 82%; +} + +#header h1 { + background: #4282b5; + color: white; + font-size: 1.7em; + margin: 0; + padding: 0; +} + +#header #actions-menu { + display: block; + margin: 0 1em 0 0; + padding: 0; + color: white; + text-align: right; + font-size: 1.2em; +} + +#header #actions-menu li { + display: inline; +} + +#header #actions-menu :link, #header #actions-menu :visited { + color: white; + text-decoration: none; +} + +#header #actions-menu :link:hover, #header #actions-menu :visited:hover { + text-decoration: underline; +} diff --git a/rt/html/NoAuth/css/3.4-compat/login.css b/rt/html/NoAuth/css/3.4-compat/login.css new file mode 100644 index 000000000..2b967e0f1 --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/login.css @@ -0,0 +1,54 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#body.login-body { + width: 98%; +} + +#login-box { + width: 30em; +} diff --git a/rt/html/NoAuth/css/3.4-compat/main.css b/rt/html/NoAuth/css/3.4-compat/main.css new file mode 100644 index 000000000..f2c9ad321 --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/main.css @@ -0,0 +1,69 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +%# Import the 3.5 styles we want to build off of... +@import "../3.5-default/logo.css"; +@import "../3.5-default/misc.css"; +@import "../3.5-default/transactions.css"; +@import "../3.5-default/approvals.css"; +@import "../3.5-default/login.css"; +@import "../3.5-default/quickbar.css"; +@import "../3.5-default/ticket.css"; + +%# ...and then import the 3.4 compat styles afterwards so they can cascade +@import "nav.css"; +@import "footer.css"; +@import "body.css"; +@import "titlebox.css"; +@import "header.css"; +@import "forms.css"; +@import "transactions.css"; +@import "ticket.css"; +@import "login.css"; +@import "quickbar.css"; +@import "misc.css"; + diff --git a/rt/html/NoAuth/css/3.4-compat/misc.css b/rt/html/NoAuth/css/3.4-compat/misc.css new file mode 100644 index 000000000..09be77a51 --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/misc.css @@ -0,0 +1,49 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +.oddline { background: white; } +.evenline { background: #cecfef; } diff --git a/rt/html/NoAuth/css/3.4-compat/nav.css b/rt/html/NoAuth/css/3.4-compat/nav.css new file mode 100644 index 000000000..f83c0fd2c --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/nav.css @@ -0,0 +1,106 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#nav { + clear: left; + float: left; + width: 18%; + font-size: 1.4em; + color: #eee; + margin: 0; + background: #4282b5 url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; +} + +#nav #system-menu { + padding: 0 0.2em 0.2em 0.2em; + margin-top: 0; +/* background: transparent url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; */ +} + +#nav ul { + list-style: none; + padding-left: 0.5em; + margin-left: 0; +} + +#nav ul .bullet, #nav ul .separator { + display: none; +} + +#nav ul li { + padding: 0.4em 0 0.4em 0.2em; + border-bottom: 1px solid white; +} + +#nav li ul { + font-size: 0.9em; +} + +#nav li ul li { + border-bottom: none; + padding: 0.2em 0 0 0; +} + +#nav :link, #nav :visited { + text-decoration: none; + color: #eee; +} + +#nav :link:hover, +#nav :visited:hover, +#nav :link.selected, +#nav :visited.selected +{ + color: #ff6; +} + +#nav :link.selected, +#nav :visited.selected +{ + text-decoration: underline; + font-weight: bold; +} diff --git a/rt/html/NoAuth/css/3.4-compat/quickbar.css b/rt/html/NoAuth/css/3.4-compat/quickbar.css new file mode 100644 index 000000000..d7aac5d51 --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/quickbar.css @@ -0,0 +1,82 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#quickbar { + border: 1px solid transparent; +} + +#quickbar #quick-personal { + display: inline; + color: #888; + padding: 0.5em 1em 0 0; + float: right; +} + +#quickbar #quick-personal span { + font-weight: bold; +} + +#quickbar #quick-personal :link, +#quickbar #quick-personal :visited +{ + color: #888; + font-weight: bold; +} + +#quickbar #quick-personal :link:hover, +#quickbar #quick-personal :visited:hover +{ + color: black; +} + +#quickbar #topactions { + color: white; + font-size: 0.9em; + position: relative; + right: 1em; + float: right; +} diff --git a/rt/html/NoAuth/css/3.4-compat/ticket.css b/rt/html/NoAuth/css/3.4-compat/ticket.css new file mode 100644 index 000000000..2c808929d --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/ticket.css @@ -0,0 +1,50 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +.value { + font-weight: bold; +} diff --git a/rt/html/NoAuth/css/3.4-compat/titlebox.css b/rt/html/NoAuth/css/3.4-compat/titlebox.css new file mode 100644 index 000000000..363da69d3 --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/titlebox.css @@ -0,0 +1,103 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +.titlebox { + margin: 0.5em 0; +} + +.titlebox .titlebox-content { + padding: 0.05em; +} + +.titlebox .titlebox-title { + background: #069; + padding: 0.2em 0.5em; + color: white; + border-top: 1px solid black; + border-bottom: 1px solid black; + font-weight: bold; + position: relative; +} + +.titlebox .titlebox-title .right { + position: absolute; + right: 1.5em; + font-size: 0.9em; +} + +#body .titlebox .titlebox-title :link, #body .titlebox .titlebox-title :visited { + color: white; +} + +#body .titlebox .titlebox-title .widget :link, #body .titlebox .titlebox-title .widget :visited { + color: black; +} + +.titlebox .titlebox-content hr.clear { + visibility: hidden; +} + +%# TRS: I wish there was a more elegant way to do this... I essentially need to +%# select all elements X that do NOT have element Y as a descendant... which I can +%# fake with the child selector of CSS2, but IE is stupid and does not support that. + +% for (qw(index +% Search-Build +% User-Prefs +% Approvals +% Admin-Users-Modify +% SelfService +% SelfService-Closed +% Ticket-ModifyAll +% )) +% { +#comp-<%$_%> .titlebox .titlebox-content, +% } +.titlebox .titlebox .titlebox-content +{ + background: #cecfce; +} diff --git a/rt/html/NoAuth/css/3.4-compat/transactions.css b/rt/html/NoAuth/css/3.4-compat/transactions.css new file mode 100644 index 000000000..2078a3147 --- /dev/null +++ b/rt/html/NoAuth/css/3.4-compat/transactions.css @@ -0,0 +1,83 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +.ticket-transaction { + margin: 0; + border: none; +} + +.ticket-transaction .type { + width: 1em; +} + +.ticket-transaction.even { + background: #cecfef; +} + +.ticket-transaction.basics { border-color: #9c3031; } +.ticket-transaction.basics .type { background: #9c3031; } +.ticket-summary .ticket-info-basics .titlebox-content { border-left: none; } +.ticket-summary .ticket-info-basics .titlebox-title { background: #9c3031; } + +.ticket-transaction.people { border-color: #31309c; } +.ticket-transaction.people .type { background: #31309c; } +.ticket-summary .ticket-info-people .titlebox-content { border-left: none; } +.ticket-summary .ticket-info-people .titlebox-title { background: #31309c; } + +.ticket-transaction.links { border-color: #316531; } +.ticket-transaction.links .type { background: #316531; } +.ticket-summary .ticket-info-links .titlebox-content { border-left: none; } +.ticket-summary .ticket-info-links .titlebox-title { background: #316531; } + +.ticket-transaction.dates { border-color: #633063; } +.ticket-transaction.dates .type { background: #633063; } +.ticket-summary .ticket-info-dates .titlebox-content { border-left: none; } +.ticket-summary .ticket-info-dates .titlebox-title { background: #633063; } + +.ticket-transaction.message { border-color: #069; } +.ticket-transaction.message .type { background: #069; } + diff --git a/rt/html/NoAuth/css/3.5-default/approvals.css b/rt/html/NoAuth/css/3.5-default/approvals.css new file mode 100644 index 000000000..5bc836aa9 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/approvals.css @@ -0,0 +1,97 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +.approval { + margin-bottom: 3em; + padding: 0 0 1em 0; + border: 1px solid #069; +} + +.approval .name { + background: #069; + color: white; + font-size: 1.1em; + padding: 0.2em 0 0.4em 0.2em; +} + +#body .approval .name :link, #body .approval .name :visited { + color: white; +} + +.approval .originating-ticket { + margin: 0.5em; + border: 1px solid #aaa; +} + +.approval .originating-ticket .link { + display: block; + background: #aaa; + padding: 0.2em 0 0.4em 0.2em; +} + +.approval .originating-ticket .info { + padding: 0.5em; +} + +#body .approval .originating-ticket .link :link, +#body .approval .originating-ticket .link :visited { + color: black; +} + +.approval .form { + margin: 1em 0.5em 0.5em 0.5em; +} + +.approval .form .action, .approval .form .notes { + float: left; + margin-left: 1em; +} + +.approval .form .action { padding-top: 1em; } + +.approval .form .action label { font-weight: normal; } +.approval .form .notes label { display: block; } diff --git a/rt/html/NoAuth/css/3.5-default/body.css b/rt/html/NoAuth/css/3.5-default/body.css new file mode 100755 index 000000000..d4470343c --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/body.css @@ -0,0 +1,81 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#body { + clear: both; + margin: 0 0.75em 0 2em; + padding-top: 0.5em; +} + +#body h1 { + border-bottom: 1px dotted #069; + padding-left: 0.5em; +} + +#body h1 { font-size: 1.5em; } +#body h2 { font-size: 1.3em; } +#body h3 { font-size: 1.1em; } +#body h4 { font-size: 1em; } +#body h5 { font-size: 0.9em; } +#body h6 { font-size: 0.8em; } + +#body h1, #body h2, #body h3, #body h4, #body h5, #body h6 { + color: #930; + font-weight: bold; +} + +#body :link { color: #069; } + +#body :link, #body :visited { + font-weight: bold; + text-decoration: none; +} + +#body :link:hover, #body :visited:hover { + text-decoration: underline; +} + diff --git a/rt/html/NoAuth/css/3.5-default/footer.css b/rt/html/NoAuth/css/3.5-default/footer.css new file mode 100644 index 000000000..c46998293 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/footer.css @@ -0,0 +1,91 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#footer { + clear: both; + font-size: 0.8em; + margin-top: 5em; + padding-bottom: 3em; +} + +#footer p { float: left; } + +#footer #time { + color: white; + background: #069 url(<%$RT::WebImagesURL%>/css/ctr-b2g.gif) no-repeat top right; + padding: 0.2em 0 0.3em 0; + margin: 0; + position: relative; + z-index: 2; +} + +#footer #time span { + padding: 0.2em 2em 0.3em 3em; + background: url(<%$RT::WebImagesURL%>/css/cbr-b2g.gif) no-repeat bottom right; +} + +#footer #bpscredits { + background: #ccc url(<%$RT::WebImagesURL%>/css/ctr-gray.gif) no-repeat top right; + padding: 0.2em 0 0.3em 0; + margin: 0; + position: relative; + left: -10px; + z-index: 1; +} + +#footer #bpscredits span { + padding: 0.2em 2em 0.3em 3em; + background: url(<%$RT::WebImagesURL%>/css/cbr-gray.gif) no-repeat bottom right; +} + +#footer #legal { + float: none; + color: #888; + padding: 1em 0 0 2em; + clear: both; +} + diff --git a/rt/html/NoAuth/css/3.5-default/forms.css b/rt/html/NoAuth/css/3.5-default/forms.css new file mode 100755 index 000000000..e49c45f3a --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/forms.css @@ -0,0 +1,136 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +form input.button { + border: 3px double #069; + border-top-color: #08c; + border-left-color: #08c; + padding: 0.25em; + background: white; + font-weight: bold; + font-size: 1em; + margin: 0.5em 0.5em 0 0.5em; +} + +form input.button:active { + border: 3px double #08c; + border-top-color: #069; + border-left-color: #069; +} + +form select { + border: 1px solid #069; + padding: 1px; +} + +form input.field, form input, form textarea { + border: 1px solid #069; + padding: 3px; +} + +form input.checkbox, form input.radio { + border: none; + padding: 0; +} + +/* form .entry input, form .value input */ + +.label, form label, .labeltop { + font-weight: bold; +} + +.labeltop { + vertical-align: top; +} + +.submit { + font-weight: bold; + color: #a00; + font-size: 1.1em; + padding: 0.3em 1.5em 0 1.5em; + border-top: 1px solid #930; + margin: 1.5em 0 2.5em 0; +} + +.submit .buttons { float: right; } +.submit .extra-buttons { float: left; } +.submit .button { font-size: 0.9em; } +.submit .submit-clear { display: none; } + +.input-row { + clear: both; + padding: 0.25em; +} + +%# ComboBox styles... some properties like height and width must be dynamically +%# set in the JS (at least for now). +.combobox { + border: 2px inset #069; + padding-left: 0.5em; + padding-bottom: 0.1em; +} + +.combobox .combo-button { + padding: 0 2px 0 2px; + margin: 0; + background: ButtonFace; + color: ButtonText; + border: 2px outset ButtonHighlight; + cursor: default; + font-size: 8pt; +} + +.combobox .combo-text { + border: none; + margin: 0; + padding: 0; +} + +.combobox .combo-list { + z-index: 200; +} + diff --git a/rt/html/NoAuth/css/3.5-default/header.css b/rt/html/NoAuth/css/3.5-default/header.css new file mode 100644 index 000000000..cc5c9e4b1 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/header.css @@ -0,0 +1,152 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#header { + clear: both; + margin: 0 0.75em 0 0.75em; + padding-top: 1em; +} + +#header h1 { + margin: 0; + padding: 0; + color: #930; + position: relative; + font-size: 2em; + font-weight: bold; + left: 1.3em; + top: 0.15em; + z-index: 3; + width: 95%; +} + +#header ul { + margin: 0; + padding: 0; + color: #eee; + float: left; +} + +#header #page-menu { + position: relative; + z-index: 2; + background: #069 url(<%$RT::WebImagesURL%>/css/ct.gif) no-repeat top left; + min-width: 65%; +} + +%# This is an interesting bit of CSS. expression() is an IE-only extension to +%# it's CSS implementation. Just in case other browsers might choke on it, +%# the rule is enclosed in a selector only IE will (wrongly) match to an element. +%# +%# The expression() function takes Javascript, and basically what it's doing here +%# is checking to see if the width of the menu would be greater than 65% of the body +%# width. If it is, great, leave it alone to automatically resize. If it is not, set +%# it to 65% of the body width. This amounts to emulating the min-width rule that +%# compliant browsers understand above. +* html #header ul#page-menu { + width: expression(document.body.clientWidth*0.65 < document.getElementById('page-menu').clientWidth ? "auto" : "65%"); + overflow: visible; +} + +#page-menu div { + position: relative; + z-index: 3; +} + +#page-menu div { background: url(<%$RT::WebImagesURL%>/css/cb.gif) no-repeat bottom left; } +#page-menu div div { background: url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; } +#page-menu div div div { + background: url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; + padding: 0.2em 1em 0.4em 1em; +} + +#page-menu.actions-present div div { background: url(<%$RT::WebImagesURL%>/css/cbr-b2lb.gif) no-repeat bottom right; } +#page-menu.actions-present div div div { background: url(<%$RT::WebImagesURL%>/css/ctr-b2lb.gif) no-repeat top right; } + +#header ul li { + display: inline; +} + +#header #actions-menu { + position: relative; + background: #08c; +} + +#actions-menu div { + position: relative; + z-index: 2; +} + +/*#actions-menu div { background: url(<%$RT::WebImagesURL%>/css/cb.gif) no-repeat bottom left; }*/ +#actions-menu div div { background: url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; } +#actions-menu div div div { + background: url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; + padding: 0.2em 1em 0.4em 1em; +} + +#header :link, +#header :visited +{ + color: white; + text-decoration: none; +} + +#header :link.selected, +#header :visited.selected, +#header :link:hover, +#header :visited:hover +{ + color: #fc6; /*#ff6;*/ +} + +#header :link.selected, +#header :visited.selected +{ + font-weight: bold; + text-decoration: underline; +} + diff --git a/rt/html/NoAuth/css/3.5-default/login.css b/rt/html/NoAuth/css/3.5-default/login.css new file mode 100644 index 000000000..b9e7aeb41 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/login.css @@ -0,0 +1,85 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#login-box { + width: 50%; + margin: 0 auto 4em auto; +} + +%# More rules only IE will recognize (but are still valid!) to correct for +%# IE's incorrect handling of auto margins and the W3C defined behavior. +%# text-align will affect a block element in IE, therefore centering it, like +%# left and right auto margins *should* +* html #login-box { + text-align: center; +} + +%# ... and align the text back the way it should be +* html #login-box .titlebox { + text-align: left; +} + +#login-box .input-row { + padding: 0.5em; +} + +#login-box .input-row .label { + width: 8em; + float: left; + text-align: right; + padding: 0.2em 1em 0 0; +} + +#login-box .input-row .input { + float: left; +} + +#login-box .button-row { + clear: both; + padding: 0.5em; + float: right; +} diff --git a/rt/html/NoAuth/css/3.5-default/logo.css b/rt/html/NoAuth/css/3.5-default/logo.css new file mode 100644 index 000000000..e9c079cc0 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/logo.css @@ -0,0 +1,60 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#logo { + float: left; + clear: left; + + margin: 0.5em 0 0.5em 10px; +} + +#logo img { border: none; } +#logo div.rtname { + text-align: center; + font-weight: bold; +} + diff --git a/rt/html/NoAuth/css/3.5-default/main.css b/rt/html/NoAuth/css/3.5-default/main.css new file mode 100644 index 000000000..13f1ba621 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/main.css @@ -0,0 +1,61 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +@import "misc.css"; +@import "login.css"; +@import "logo.css"; +@import "quickbar.css"; +@import "body.css"; +@import "approvals.css"; +@import "titlebox.css"; +@import "forms.css"; +@import "ticket.css"; +@import "transactions.css"; +@import "nav.css"; +@import "header.css"; +@import "footer.css"; + diff --git a/rt/html/NoAuth/css/3.5-default/misc.css b/rt/html/NoAuth/css/3.5-default/misc.css new file mode 100755 index 000000000..9e83ef448 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/misc.css @@ -0,0 +1,91 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +body { + font-family: Verdana, sans-serif; + font-size: 76%; + margin: 0; + background-color: white; +} + +.hide, .hidden { display: none !important; } + +#body.calpopup { + margin-left: 2em; +} + +.calendar { + text-align: center; + margin: 2em 0 0 0; +} + +.calendar td, .calendar th { padding: 0.1em 0.25em 0.1em 0.25em; } + +.calendar caption .month { + padding: 0 1em 0 1em; + font-size: 1.5em; +} + +.evenline { background-color: white; } +.oddline { background-color: #ddd; } + +td { + padding: 0.1em 0.5em 0.1em 0.5em; +} + +.clear { clear: both; } + +ul.action-results { + margin-top: 0; + margin-bottom: 0; +} + +#comp-Search-Build .titlebox-content { + padding-left: 0.7em; + padding-right: 0.3em; +} + diff --git a/rt/html/NoAuth/css/3.5-default/nav.css b/rt/html/NoAuth/css/3.5-default/nav.css new file mode 100644 index 000000000..78323aa91 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/nav.css @@ -0,0 +1,163 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#nav { + clear: both; + font-size: 1.1em; +} + +#nav #system-menu, +#nav ul +{ + min-width: 85%; +} + +%# This is an interesting bit of CSS. expression() is an IE-only extension to +%# it's CSS implementation. Just in case other browsers might choke on it, +%# the rule is enclosed in a selector only IE will (wrongly) match to an element. +%# +%# The expression() function takes Javascript, and basically what it's doing here +%# is checking to see if the width of the menu would be greater than 85% of the body +%# width. If it is, great, leave it alone to automatically resize. If it is not, set +%# it to 85% of the body width. This amounts to emulating the min-width rule that +%# compliant browsers understand above. +* html #nav #system-menu { + width: expression(document.body.clientWidth*0.85 < document.getElementById('page-menu').clientWidth ? "auto" : "85%"); + overflow: visible; +} + +#nav ul { + float: left; + clear: left; + + color: #eee; + font-weight: bold; + + margin: 0; + padding: 0; + + list-style: none; +} + +#nav li ul { + margin-top: 0.75em; +} + +/* +%# We need the extra padding above for browsers where we display the arrows +%# but those don't work in IE so we don't want as much spacing +%# +%# IE wrongly matches the selector below even though there isn't an element +%# above <html> in the doc tree +*/ +* html #nav li ul { + margin-top: 0.25em; +} + +#nav li { + display: inline; + margin-bottom: 1em; + padding: 0.2em 0 0.4em 0; +} + +#nav li.first { padding-left: 1em; } + +#nav ul div div.wrapper { + text-align: left; + padding: 0.2em 1em 0.4em 0; +} + +/****/ + +#nav :link, +#nav :visited +{ + color: #ececec; + text-decoration: none; +} + +#nav :link.selected, +#nav :visited.selected, +#nav :link:hover, +#nav :visited:hover +{ + color: #fc6; /*#ff6;*/ +} + +#nav :link.selected, +#nav :visited.selected +{ + text-decoration: underline; +} + +html>body #nav :link.selected, +html>body #nav :visited.selected +{ + padding-bottom: 0.8em; + background: transparent url(<%$RT::WebImagesURL%>/css/dark-arrow.png) no-repeat bottom center; +} + +html>body #nav :link.selected.odd, +html>body #nav :visited.selected.odd +{ + padding-bottom: 0.8em; + background: transparent url(<%$RT::WebImagesURL%>/css/light-arrow.png) no-repeat bottom center; +} + +/* +#nav ul { background: #069 url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; } +#nav ul div { background: transparent url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; } +#nav ul.odd { background: #08c url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; } +#nav ul.odd div { background: transparent url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; } +*/ + + +#nav ul div.wrapper { background: transparent url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; } +#nav ul div { background: #069 url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; } +#nav ul.odd div.wrapper { background: transparent url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; } +#nav ul div.odd { background: #08c url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; } + diff --git a/rt/html/NoAuth/css/3.5-default/quickbar.css b/rt/html/NoAuth/css/3.5-default/quickbar.css new file mode 100644 index 000000000..16f83f789 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/quickbar.css @@ -0,0 +1,98 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +#quickbar #quick-personal { + display: inline; + color: #888; + padding: 0.5em 1em 0 0; + float: right; +} + +#quickbar #quick-personal span { + font-weight: bold; +} + +#quickbar #quick-personal :link, +#quickbar #quick-personal :visited +{ + color: #888; + font-weight: bold; +} + +#quickbar #quick-personal :link:hover, +#quickbar #quick-personal :visited:hover +{ + color: black; +} + +#quickbar #topactions { + float: right; + clear: right; + + font-size: 0.9em; + padding: 1em; +} + +#quickbar #topactions form { + display: inline; + margin-left: 1em; +} + +#quickbar #topactions form .button { + padding: 0 2px 0 2px; + font-size: 1em; + margin: 0; +} + +#quickbar #topactions form .field { + padding: 1px; + font-size: 0.9em; +} + +#quickbar #topactions form input.field { + padding: 3px; +} diff --git a/rt/html/NoAuth/css/3.5-default/ticket.css b/rt/html/NoAuth/css/3.5-default/ticket.css new file mode 100644 index 000000000..5e8eeb78a --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/ticket.css @@ -0,0 +1,57 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +.ticket-info-cfs .label { + vertical-align: top; +} + +.ticket-info-cfs ul { + margin: 0; + padding: 0; + margin-left: 0.5em; + list-style: none; +} diff --git a/rt/html/NoAuth/css/3.5-default/titlebox.css b/rt/html/NoAuth/css/3.5-default/titlebox.css new file mode 100644 index 000000000..d4320c090 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/titlebox.css @@ -0,0 +1,189 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +.titlebox { + margin-bottom: 1em; +} + +.titlebox .titlebox-content { + margin-top: -1px; + margin: 0; + /*margin: 1em 2em 0.5em 2em;*/ +} + +.titlebox .titlebox-content .titlebox-content table { + margin: 1em 2em 0.5em 2em; +} +.titlebox th { + font-size: 0.8em; + +} + +.titlebox .titlebox-content table { + +} + + +%# TRS: I wish there was a more elegant way to do this... I essentially need to +%# select all elements X that do NOT have element Y as a descendant... which I can +%# fake with the child selector of CSS2, but IE is stupid and does not support that. + +% for (qw(index +% Search-Build +% User-Prefs +% Approvals +% Admin-Users-Modify +% SelfService +% SelfService-Closed +% )) +% { +#comp-<%$_%> .titlebox .titlebox-content, +% } +.titlebox .titlebox .titlebox-content +{ + background: #eee; + border-bottom: 1px solid #ccc; + border-right: 1px solid #ccc; + border-left: 0.5em solid #069; +} + +#login-box .titlebox .titlebox-content +{ + background: none; + border: none; +} + +.titlebox .titlebox-title { + position: relative; + font-weight: bold; + color: #930; + font-size: 1.2em; + padding: 0.2em 0 0.2em 4em; + border-bottom: 1px solid #069; +} + +.titlebox .titlebox-title .right { + position: absolute; + top: 0.5em; + right: 1.5em; + font-size: 0.9em; + color: #888; +} + +.titlebox .titlebox-title .right .selected { color: #930; } + +#body .titlebox .titlebox-title .right :link, +#body .titlebox .titlebox-title .right :visited { + color: #888; +} + +#body .titlebox .titlebox-title .right :link:hover, +#body .titlebox .titlebox-title .right :visited:hover { + color: #930; +} + +.titlebox .titlebox-title .widget a { + display: block; + padding-top: 1em; + width: 20px; + + background: url(<%$RT::WebImagesURL%>/css/rollup-arrow.gif) no-repeat center center; + + margin: 0; + text-indent: -9999px; + + position: absolute; + top: 0.4em; + left: 0.75em; + float: left; + +%# Basically IE5 will see those crazy backslashes and prematurely end the rule. +%# This allows values for IE 5's broken box model to be set before the hack and +%# the real values to be set after. We also set voice-family back to whatever it +%# would have been on the off chance it's actually used. + /* WIN IE5 hack */ + height: 7px; + voice-family: "\"}\""; + voice-family: inherit; + height: 0; + overflow: hidden; +} + +%# IE also doesn't support the child selector ">", so we can use it to set values +%# that only other browsers will see (in this case, playing nice with Opera, which +%# also suffers from the backslash hack above.) +html>body .titlebox .titlebox-title .widget a { + height: 0; + overflow: hidden; +} + +%# Compensates for IE's bad box model by hiding this rule from other browsers +* html .titlebox .titlebox-title .widget a { + background-position: center 0.3em; + left: -3.5em; +} + +.titlebox.rolled-up .titlebox-title .widget a { + background-image: url(<%$RT::WebImagesURL%>/css/rolldown-arrow.gif); +} + +#body .titlebox .titlebox-title :link, +#body .titlebox .titlebox-title :visited +{ + color: #930; + text-decoration: none; +} + +#body .titlebox .titlebox-title :link:hover, +#body .titlebox .titlebox-title :visited:hover +{ + text-decoration: underline; +} + +.titlebox .titlebox-content hr.clear { + visibility: hidden; +} diff --git a/rt/html/NoAuth/css/3.5-default/transactions.css b/rt/html/NoAuth/css/3.5-default/transactions.css new file mode 100755 index 000000000..dfc4cb9d3 --- /dev/null +++ b/rt/html/NoAuth/css/3.5-default/transactions.css @@ -0,0 +1,146 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +.ticket-transaction { + border-bottom: 1px solid #ddd; + border-right: 3px solid #069; +} + +#ticket-history .ticket-transaction { + border-bottom-color: #ccc; +} + +.ticket-transaction.even { + background: #eee; +} + +.ticket-transaction .date { + font-size: 0.9em; + width: 10em; +} + +.ticket-transaction .description { + font-weight: bold; + font-size: 0.9em; + text-align: left; +} + +.ticket-transaction .actions { + text-align: right; + font-weight: bold; +} + +.ticket-transaction .type { + background: #888; + width: 1.2em; + color: white; + text-align: center; + font-size: 1em; +} + +#body .ticket-transaction .type :link, +#body .ticket-transaction .type :visited +{ + color: white; + font-weight: normal; +} + +.ticket-transaction.basics { border-color: #b32; } +.ticket-transaction.basics .type { background: #b32; } +.ticket-summary .ticket-info-basics .titlebox-content { border-left: 0.5em solid #b32; } + +.ticket-transaction.people { border-color: #48c; } +.ticket-transaction.people .type { background: #48c; } +.ticket-summary .ticket-info-people .titlebox-content { border-left: 0.5em solid #48c; } + +%# light green - #ad8 +.ticket-transaction.links { border-color: #316531; } +.ticket-transaction.links .type { background: #316531; } +.ticket-summary .ticket-info-links .titlebox-content { border-left: 0.5em solid #316531; } + +%# orange - #d71 +.ticket-transaction.dates { border-color: #633063; } +.ticket-transaction.dates .type { background: #633063; } +.ticket-summary .ticket-info-dates .titlebox-content { border-left: 0.5em solid #633063; } + +.ticket-transaction.message { border-color: #069; } +.ticket-transaction.message .type { background: #069; } + +.ticket-transaction.other { border-color: #888; } + +.ticket-transaction td .message-header-value { + padding: 0; +} + +.ticket-transaction td .message-header-key { + padding: 0 1em 0 1.5em; + font-weight: bold; +} + +.ticket-transaction .downloadattachment { + float: right; + font-size: 0.9em; + text-align: right; +} + +.ticket-transaction .messagebody { + clear: both; + padding-left: 3em; + padding-bottom: 1em; +} + +%# Message stanza colors +.message-stanza-depth-0 { color: #000; } +.message-stanza-depth-1 { color: #600; } +.message-stanza-depth-2 { color: #060; } +.message-stanza-depth-3 { color: #006; } +.message-stanza-depth-4 { color: #c00; } +.message-stanza-depth-5 { color: #0c0; } +.message-stanza-depth-6 { color: #00c; } +.message-stanza-depth-7 { color: #f00; } +.message-stanza-depth-8 { color: #0f0; } +.message-stanza-depth-9 { color: #00f; } diff --git a/rt/html/NoAuth/css/autohandler b/rt/html/NoAuth/css/autohandler new file mode 100644 index 000000000..980e5f09d --- /dev/null +++ b/rt/html/NoAuth/css/autohandler @@ -0,0 +1,53 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +<%init> +RT::Interface::Web::StaticFileHeaders(); +$r->content_type('text/css'); +$m->call_next(); +return(); +</%init> diff --git a/rt/html/NoAuth/css/print.css b/rt/html/NoAuth/css/print.css new file mode 100644 index 000000000..40d23d0d6 --- /dev/null +++ b/rt/html/NoAuth/css/print.css @@ -0,0 +1,85 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +* { + float: none; + position: static; +} + +body { + margin: 1em; + font-size: 10pt; +} + +#body { + margin: 0; +} + +#header h1 { + margin-bottom: 2em; +} + +#header { + padding: 0 !important; +} + +#quickbar, +#nav, +#header #page-menu, +#header #actions-menu, +.titlebox .title .widget, +#footer +{ +display: none; +} + +a:link, a:visited { + background: transparent; + font-weight: bold !important; + text-decoration: underline !important; +} + diff --git a/rt/html/NoAuth/images/autohandler b/rt/html/NoAuth/images/autohandler index 2e428c157..720979830 100644 --- a/rt/html/NoAuth/images/autohandler +++ b/rt/html/NoAuth/images/autohandler @@ -1,24 +1,28 @@ -<%init> +<%INIT> +&RT::Interface::Web::StaticFileHeaders(); # This autohandler will spit out RT's images if the user hasn't # properly configured their webserver to stop RT from passing # images through the mason handler. - my $file = $m->base_comp->source_file; -my $type = "application/octet-stream"; + +my $type = "application/octet-stream"; if ($file =~ /\.(gif|png|jpe?g)$/i) { $type = "image/$1"; $type =~ s/jpg/jpeg/gi; } -die unless (-f $file && -r $file); +die "file not found" unless -f $file && -r _; + $r->content_type($type); -open (FILE, "<$file") || die; +open my $fh, "<$file" or die "couldn't open file: $!"; +binmode($fh); { local $/ = \16384; - $m->out($_) while (<FILE>); - close(FILE); + $m->out($_) while (<$fh>); + $m->flush_buffer; } +close $fh; $m->abort; -</%init> +</%INIT> diff --git a/rt/html/NoAuth/images/bplogo.gif b/rt/html/NoAuth/images/bplogo.gif Binary files differindex e2cf49c42..1bb0adfb4 100644 --- a/rt/html/NoAuth/images/bplogo.gif +++ b/rt/html/NoAuth/images/bplogo.gif diff --git a/rt/html/NoAuth/images/css/cb-light.gif b/rt/html/NoAuth/images/css/cb-light.gif Binary files differnew file mode 100644 index 000000000..d5e3059b0 --- /dev/null +++ b/rt/html/NoAuth/images/css/cb-light.gif diff --git a/rt/html/NoAuth/images/css/cb.gif b/rt/html/NoAuth/images/css/cb.gif Binary files differnew file mode 100644 index 000000000..53bb2aec2 --- /dev/null +++ b/rt/html/NoAuth/images/css/cb.gif diff --git a/rt/html/NoAuth/images/css/cbr-b2g.gif b/rt/html/NoAuth/images/css/cbr-b2g.gif Binary files differnew file mode 100644 index 000000000..6bca03d10 --- /dev/null +++ b/rt/html/NoAuth/images/css/cbr-b2g.gif diff --git a/rt/html/NoAuth/images/css/cbr-b2lb.gif b/rt/html/NoAuth/images/css/cbr-b2lb.gif Binary files differnew file mode 100644 index 000000000..d207f846b --- /dev/null +++ b/rt/html/NoAuth/images/css/cbr-b2lb.gif diff --git a/rt/html/NoAuth/images/css/cbr-gray.gif b/rt/html/NoAuth/images/css/cbr-gray.gif Binary files differnew file mode 100644 index 000000000..d7327103a --- /dev/null +++ b/rt/html/NoAuth/images/css/cbr-gray.gif diff --git a/rt/html/NoAuth/images/css/cbr-trans.gif b/rt/html/NoAuth/images/css/cbr-trans.gif Binary files differnew file mode 100644 index 000000000..dc272ee5d --- /dev/null +++ b/rt/html/NoAuth/images/css/cbr-trans.gif diff --git a/rt/html/NoAuth/images/css/cbr.gif b/rt/html/NoAuth/images/css/cbr.gif Binary files differnew file mode 100644 index 000000000..754cee19b --- /dev/null +++ b/rt/html/NoAuth/images/css/cbr.gif diff --git a/rt/html/NoAuth/images/css/ct-light.gif b/rt/html/NoAuth/images/css/ct-light.gif Binary files differnew file mode 100644 index 000000000..55125b0fa --- /dev/null +++ b/rt/html/NoAuth/images/css/ct-light.gif diff --git a/rt/html/NoAuth/images/css/ct.gif b/rt/html/NoAuth/images/css/ct.gif Binary files differnew file mode 100644 index 000000000..d16a5c57f --- /dev/null +++ b/rt/html/NoAuth/images/css/ct.gif diff --git a/rt/html/NoAuth/images/css/ctr-b2g.gif b/rt/html/NoAuth/images/css/ctr-b2g.gif Binary files differnew file mode 100644 index 000000000..540e6d0ef --- /dev/null +++ b/rt/html/NoAuth/images/css/ctr-b2g.gif diff --git a/rt/html/NoAuth/images/css/ctr-b2lb.gif b/rt/html/NoAuth/images/css/ctr-b2lb.gif Binary files differnew file mode 100644 index 000000000..c98b18c9d --- /dev/null +++ b/rt/html/NoAuth/images/css/ctr-b2lb.gif diff --git a/rt/html/NoAuth/images/css/ctr-gray.gif b/rt/html/NoAuth/images/css/ctr-gray.gif Binary files differnew file mode 100644 index 000000000..8d5e5dd32 --- /dev/null +++ b/rt/html/NoAuth/images/css/ctr-gray.gif diff --git a/rt/html/NoAuth/images/css/ctr-trans.gif b/rt/html/NoAuth/images/css/ctr-trans.gif Binary files differnew file mode 100644 index 000000000..bb316cf04 --- /dev/null +++ b/rt/html/NoAuth/images/css/ctr-trans.gif diff --git a/rt/html/NoAuth/images/css/ctr.gif b/rt/html/NoAuth/images/css/ctr.gif Binary files differnew file mode 100644 index 000000000..9754e1567 --- /dev/null +++ b/rt/html/NoAuth/images/css/ctr.gif diff --git a/rt/html/NoAuth/images/css/dark-arrow-up.png b/rt/html/NoAuth/images/css/dark-arrow-up.png Binary files differnew file mode 100644 index 000000000..443096aa5 --- /dev/null +++ b/rt/html/NoAuth/images/css/dark-arrow-up.png diff --git a/rt/html/NoAuth/images/css/dark-arrow.png b/rt/html/NoAuth/images/css/dark-arrow.png Binary files differnew file mode 100644 index 000000000..a83500aad --- /dev/null +++ b/rt/html/NoAuth/images/css/dark-arrow.png diff --git a/rt/html/NoAuth/images/css/light-arrow-up.png b/rt/html/NoAuth/images/css/light-arrow-up.png Binary files differnew file mode 100644 index 000000000..c209d4335 --- /dev/null +++ b/rt/html/NoAuth/images/css/light-arrow-up.png diff --git a/rt/html/NoAuth/images/css/light-arrow.png b/rt/html/NoAuth/images/css/light-arrow.png Binary files differnew file mode 100644 index 000000000..575d4e5ec --- /dev/null +++ b/rt/html/NoAuth/images/css/light-arrow.png diff --git a/rt/html/NoAuth/images/css/rolldown-arrow.gif b/rt/html/NoAuth/images/css/rolldown-arrow.gif Binary files differnew file mode 100644 index 000000000..3c296dcae --- /dev/null +++ b/rt/html/NoAuth/images/css/rolldown-arrow.gif diff --git a/rt/html/NoAuth/images/css/rolldown-arrow.png b/rt/html/NoAuth/images/css/rolldown-arrow.png Binary files differnew file mode 100644 index 000000000..33d8ab1e2 --- /dev/null +++ b/rt/html/NoAuth/images/css/rolldown-arrow.png diff --git a/rt/html/NoAuth/images/css/rollup-arrow.gif b/rt/html/NoAuth/images/css/rollup-arrow.gif Binary files differnew file mode 100644 index 000000000..f009ff4c6 --- /dev/null +++ b/rt/html/NoAuth/images/css/rollup-arrow.gif diff --git a/rt/html/NoAuth/js/ahah.js b/rt/html/NoAuth/js/ahah.js new file mode 100644 index 000000000..03ed12a97 --- /dev/null +++ b/rt/html/NoAuth/js/ahah.js @@ -0,0 +1,80 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +/* +% $r->content_type('application/x-javascript'); +*/ +// Fetched from http://www.opendarwin.org/~drernie/src/ahah.js +function ahah(url, target, delay) { + // document.getElementById(target).innerHTML = 'Loading <a href="'+url+'">'+url +'</a>...'; + if (window.XMLHttpRequest) { + req = new XMLHttpRequest(); + } else if (window.ActiveXObject) { + req = new ActiveXObject("Microsoft.XMLHTTP"); + } + if (req != undefined) { + req.onreadystatechange = function() {ahahDone(url, target, delay);}; + req.open("GET", url, true); + req.send(""); + } +} + +function ahahDone(url, target, delay) { + if (req.readyState == 4) { // only if req is "loaded" + if (req.status == 200) { // only if "OK" + document.getElementById(target).innerHTML = req.responseText; + } else { + document.getElementById(target).innerHTML="Error loading '"+url+"':\n"+req.statusText; + } + if (delay != undefined) { + setTimeout("ahah(url,target,delay)", delay); // resubmit after delay + //server should ALSO delay before responding + } + } +} + +% $m->abort(); diff --git a/rt/html/NoAuth/js/autohandler b/rt/html/NoAuth/js/autohandler new file mode 100644 index 000000000..fd1b90075 --- /dev/null +++ b/rt/html/NoAuth/js/autohandler @@ -0,0 +1,53 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +<%init> +&RT::Interface::Web::StaticFileHeaders(); +$r->content_type('application/x-javascript'); +$m->call_next(); +return(); +</%init> diff --git a/rt/html/NoAuth/js/cascaded.js b/rt/html/NoAuth/js/cascaded.js new file mode 100644 index 000000000..79da4167f --- /dev/null +++ b/rt/html/NoAuth/js/cascaded.js @@ -0,0 +1,66 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +function filter_cascade (id, val) { + var select = document.getElementById(id); + if (!select) { return }; + var i; + var children = select.childNodes; + for (i in children) { + var style = children[i].style; + if (!style) { continue }; + if (val == '') { + style.display = 'block'; + continue; + } + if (children[i].label.substr(0, val.length) == val) { + style.display = 'block'; + continue; + } + style.display = 'none'; + } +} diff --git a/rt/html/NoAuth/js/class.js b/rt/html/NoAuth/js/class.js new file mode 100644 index 000000000..9e4c70ea5 --- /dev/null +++ b/rt/html/NoAuth/js/class.js @@ -0,0 +1,62 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +/* by TKirby, released under GPL */ + + function _ClassSetup(Object) { + this.prototype = Object; + return this; + } + + function Class(name) { + var _newclass_; + eval("window."+name+" = new Function('this."+name+".apply(this,arguments);');"); + eval("window."+name+".define = _ClassSetup;"); + eval("_newclass_ = window."+name+";"); + return _newclass_; + } + diff --git a/rt/html/NoAuth/js/combobox.js b/rt/html/NoAuth/js/combobox.js new file mode 100644 index 000000000..9225870b6 --- /dev/null +++ b/rt/html/NoAuth/js/combobox.js @@ -0,0 +1,265 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +function ComboBox_InitWith(n) { + if ( typeof( window.addEventListener ) != "undefined" ) { + window.addEventListener("load", ComboBox_Init(n), false); + } else if ( typeof( window.attachEvent ) != "undefined" ) { + window.attachEvent("onload", ComboBox_Init(n)); + } else { + ComboBox_Init(n)(); + } +} +function ComboBox_Init(n) { + return function () { + if ( ComboBox_UplevelBrowser( n ) ) { + ComboBox_Load( n ); + } + } +} +function ComboBox_UplevelBrowser( n ) { + if( typeof( document.getElementById ) == "undefined" ) return false; + var combo = document.getElementById( n + "_Container" ); + if( combo == null || typeof( combo ) == "undefined" ) return false; + if( typeof( combo.style ) == "undefined" ) return false; + if( typeof( combo.innerHTML ) == "undefined" ) return false; + return true; +} +function ComboBox_Load( comboId ) { + var combo = document.getElementById( comboId + "_Container" ); + var button = document.getElementById( comboId + "_Button" ); + var list = document.getElementById( comboId + "_List" ); + var text = document.getElementById( comboId ); + + + combo.List = list; + combo.Button = button; + combo.Text = text; + + button.Container = combo; + button.Toggle = ComboBox_ToggleList; + button.onclick = button.Toggle; + button.onmouseover = function(e) { this.Container.List.DisableBlur(e); }; + button.onmouseout = function(e) { this.Container.List.EnableBlur(e); }; + button.innerHTML = "\u25BC"; + button.onselectstart = function(e){ return false; }; + button.style.height = ( list.offsetHeight - 4 ) + "px"; + + text.Container = combo; + text.TypeDown = ComboBox_TextTypeDown; + text.KeyAccess = ComboBox_TextKeyAccess; + text.onkeyup = function(e) { this.KeyAccess(e); this.TypeDown(e); }; + text.style.width = ( list.offsetWidth ) + "px"; + + list.Container = combo; + list.Show = ComboBox_ShowList; + list.Hide = ComboBox_HideList; + list.EnableBlur = ComboBox_ListEnableBlur; + list.DisableBlur = ComboBox_ListDisableBlur; + list.Select = ComboBox_ListItemSelect; + list.ClearSelection = ComboBox_ListClearSelection; + list.KeyAccess = ComboBox_ListKeyAccess; + list.FireTextChange = ComboBox_ListFireTextChange; + list.onchange = null; + list.onclick = function(e){ this.Select(e); this.ClearSelection(); this.FireTextChange(); }; + list.onkeyup = function(e) { this.KeyAccess(e); }; + list.EnableBlur(null); + list.style.position = "absolute"; + list.size = ComboBox_GetListSize( list ); + list.IsShowing = true; + list.Hide(); + +} +function ComboBox_InitEvent( e ) { + if( typeof( e ) == "undefined" && typeof( window.event ) != "undefined" ) e = window.event; + if( e == null ) e = new Object(); + return e; +} +function ComboBox_ListClearSelection() { + if ( typeof( this.Container.Text.createTextRange ) == "undefined" ) return; + var rNew = this.Container.Text.createTextRange(); + rNew.moveStart('character', this.Container.Text.value.length) ; + rNew.select(); +} +function ComboBox_GetListSize( theList ) { + ComboBox_EnsureListSize( theList ); + return theList.listSize; +} +function ComboBox_EnsureListSize( theList ) { + if ( typeof( theList.listSize ) == "undefined" ) { + if( typeof( theList.getAttribute ) != "undefined" ) { + if( theList.getAttribute( "listSize" ) != null && theList.getAttribute( "listSize" ) != "" ) { + theList.listSize = theList.getAttribute( "listSize" ); + return; + } + } + if( theList.options.length > 0 ) { + theList.listSize = theList.options.length; + return; + } + theList.listSize = 4; + } +} +function ComboBox_ListKeyAccess(e) { //Make enter/space and escape do the right thing :) + e = ComboBox_InitEvent( e ); + if( e.keyCode == 13 || e.keyCode == 32 ) { + this.Select(); + return; + } + if( e.keyCode == 27 ) { + this.Hide(); + this.Container.Text.focus(); + return; + } +} +function ComboBox_TextKeyAccess(e) { //Make alt+arrow expand the list + e = ComboBox_InitEvent( e ); + if( e.altKey && (e.keyCode == 38 || e.keyCode == 40) ) { + this.Container.List.Show(); + } +} +function ComboBox_TextTypeDown(e) { //Make the textbox do a type-down on the list + e = ComboBox_InitEvent( e ); + var items = this.Container.List.options; + if( this.value == "" ) return; + var ctrlKeys = Array( 8, 46, 37, 38, 39, 40, 33, 34, 35, 36, 45, 16, 20 ); + for( var i = 0; i < ctrlKeys.length; i++ ) { + if( e.keyCode == ctrlKeys[i] ) return; + } + for( var i = 0; i < items.length; i++ ) { + var item = items[i]; + if( item.text.toLowerCase().indexOf( this.value.toLowerCase() ) == 0 ) { + this.Container.List.selectedIndex = i; + if ( typeof( this.Container.Text.createTextRange ) != "undefined" ) { + this.Container.List.Select(); + } + break; + } + } +} +function ComboBox_ListFireTextChange() { + var textOnChange = this.Container.Text.onchange; + if ( textOnChange != null && typeof(textOnChange) == "function" ) { + textOnChange(); + } +} +function ComboBox_ListEnableBlur(e) { + this.onblur = this.Hide; +} +function ComboBox_ListDisableBlur(e) { + this.onblur = null; +} +function ComboBox_ListItemSelect(e) { + if( this.options.length > 0 ) { + var text = this.Container.Text; + var oldValue = text.value; + var newValue = this.options[ this.selectedIndex ].text; + text.value = newValue; + if ( typeof( text.createTextRange ) != "undefined" ) { + if (newValue != oldValue) { + var rNew = text.createTextRange(); + rNew.moveStart('character', oldValue.length) ; + rNew.select(); + } + } + } + this.Hide(); + this.Container.Text.focus(); +} +function ComboBox_ToggleList(e) { + if( this.Container.List.IsShowing == true ) { + this.Container.List.Hide(); + } else { + this.Container.List.Show(); + } +} +function ComboBox_ShowList(e) { + if ( !this.IsShowing && !this.disabled ) { + this.style.width = ( this.Container.offsetWidth ) + "px"; + this.style.top = ( this.Container.offsetHeight + ComboBox_RecursiveOffsetTop(this.Container,true) ) + "px"; + this.style.left = ( ComboBox_RecursiveOffsetLeft(this.Container,true) + 1 ) + "px"; + ComboBox_SetVisibility(this,true); + this.focus(); + this.IsShowing = true; + } +} +function ComboBox_HideList(e) { + if( this.IsShowing ) { + ComboBox_SetVisibility(this,false); + this.IsShowing = false; + } +} +function ComboBox_SetVisibility(theList, isVisible) { + setVisibility(theList, isVisible); +} +function ComboBox_RecursiveOffsetTop(thisObject,isFirst) { + if(thisObject.offsetParent) { + if ( thisObject.style.position == "absolute" && !isFirst && typeof(document.designMode) != "undefined" ) { + return 0; + } + return (thisObject.offsetTop + ComboBox_RecursiveOffsetTop(thisObject.offsetParent,false)); + } else { + return thisObject.offsetTop; + } +} +function ComboBox_RecursiveOffsetLeft(thisObject,isFirst) { + if(thisObject.offsetParent) { + if ( thisObject.style.position == "absolute" && !isFirst && typeof(document.designMode) != "undefined" ) { + return 0; + } + return (thisObject.offsetLeft + ComboBox_RecursiveOffsetLeft(thisObject.offsetParent,false)); + } else { + return thisObject.offsetLeft; + } +} +function ComboBox_SimpleAttach(selectElement,textElement) { + textElement.value = selectElement.options[ selectElement.options.selectedIndex ].text; + var textOnChange = textElement.onchange; + if ( textOnChange != null && typeof( textOnChange ) == "function" ) { + textOnChange(); + } +} diff --git a/rt/html/NoAuth/js/list.js b/rt/html/NoAuth/js/list.js new file mode 100644 index 000000000..9753b9771 --- /dev/null +++ b/rt/html/NoAuth/js/list.js @@ -0,0 +1,159 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +/* by TKirby, released under GPL */ +/* Define the "list" Class */ +Class("list").define({ + name : null, + xml : null, + sels : null, + list : function (src, esrc, name) { this.init(src, esrc, name); }, + read : function () { + var i = 0; + if(this.xml.readyState!=4) { setTimeout(this.name+".read()", 100); } + else if(this.xml.status!=200) alert("Document not available."); + else { + var doc = this.xml.responseXML; + var nNode = null; + if(doc.childNodes[0].nodeName=="parseerror") alert("Parse Error."); + doc = doc.getElementsByTagName("list")[0]; + for(i=0;i<doc.childNodes.length;i++) { + if(doc.childNodes[i].childNodes.length>0) { + nNode = document.createElement("option"); + nNode.appendChild(document.createTextNode(doc.childNodes[i].childNodes[0].nodeValue)); + this.sels[0].appendChild(nNode); + } + } + } + }, + + init : function (src,esrc,name) { + if(!src) return; + this.name = name; + this.sels = new Array(); + var i = 0; + for(i=0;i<src.childNodes.length;i++) { + if(src.childNodes[i].nodeName=="select" || src.childNodes[i].nodeName=="SELECT") { + this.sels.push(src.childNodes[i]); + } + + if((src.childNodes[i].nodeName=="input" || src.childNodes[i].nodeName=="INPUT") + && (src.childNodes[i].name=="fromjs")) { + src.childNodes[i].value = 1; + } + + if((src.childNodes[i].nodeName=="input" || src.childNodes[i].nodeName=="INPUT") + && (src.childNodes[i].type=="submit" || src.childNodes[i].type=="SUBMIT")) { + + if (src.childNodes[i].name.indexOf("Save") < 0) { + var tmp = document.createElement("input"); + tmp.type = "button"; + tmp.name = src.childNodes[i].name; + tmp.value = src.childNodes[i].value; + src.replaceChild(tmp,src.childNodes[i]); + } + + if(src.childNodes[i].name=="add") + src.childNodes[i].onclick = new Function(this.name+".add();"); + if(src.childNodes[i].name=="remove") + src.childNodes[i].onclick = new Function(this.name+".remove();"); + if(src.childNodes[i].name=="moveup") + src.childNodes[i].onclick = new Function(this.name+".moveup();"); + if(src.childNodes[i].name=="movedown") + src.childNodes[i].onclick = new Function(this.name+".movedown();"); + } + } + if (esrc) { + this.xml = (window.navigator.appName!="Microsoft Internet Explorer" + ?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP")); + this.xml.open("GET", esrc); + this.xml.send(""); + setTimeout(this.name+".read()", 100); + } + }, + + add : function() { + var i, j = 0; + var dNode = null; + for(i=0;i<this.sels[0].length;i++) if(this.sels[0][i].selected) { + for(j=0;j<this.sels[1].length;j++) if(this.sels[1][j].value==this.sels[0][i].value) break; + if(j==this.sels[1].length) dNode = this.sels[0][i].cloneNode(true), + this.sels[1].appendChild(dNode); + } + }, + + moveup : function() { this.move(-1); }, + movedown : function() { this.move(1); }, + move : function(v) { + var i = 0; + if(v<0) for(i=0;i<this.sels[1].length;i++) this.moveOne(v, i); + else if(v>0) for(i=this.sels[1].length-1;i>=0;i--)this.moveOne(v, i); + }, + + moveOne : function(v, i) { + var ins = v + i; + if(ins<0 || ins>=this.sels[1].length) return; + if(this.sels[1][ins].selected) return; + if(this.sels[1][i].selected) { + Node = this.sels[1][i]; + this.sels[1].removeChild(Node); + this.sels[1].insertBefore(Node, this.sels[1][ins]); + } + }, + + remove : function() { + var i = 0; + for(i=this.sels[1].length-1;i>=0;i--) if(this.sels[1][i].selected) + this.sels[1].removeChild(this.sels[1][i]); + }, + + selectAll: function() { + var i = 0; + for(i=0;i<this.sels[0].length;i++) this.sels[0][i].selected = false; + for(i=0;i<this.sels[1].length;i++) this.sels[1][i].selected = true; + } +}); diff --git a/rt/html/NoAuth/js/titlebox-state.js b/rt/html/NoAuth/js/titlebox-state.js new file mode 100644 index 000000000..8950f9e62 --- /dev/null +++ b/rt/html/NoAuth/js/titlebox-state.js @@ -0,0 +1,83 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +function createCookie(name,value,days) { + var path = "<%$RT::WebPath%>" ? "<%$RT::WebPath%>" : "/"; + + if (days) { + var date = new Date(); + date.setTime(date.getTime()+(days*24*60*60*1000)); + var expires = "; expires="+date.toGMTString(); + } + else + expires = ""; + + document.cookie = name+"="+value+expires+"; path="+path; +} + +function loadTitleBoxStates() { + var cookies = document.cookie.split(/;\s*/); + var len = cookies.length; + + for (var i = 0; i < len; i++) { + var c = cookies[i].split('='); + + if (c[0].match(/^TitleBox--/)) { + var e = document.getElementById(c[0]); + if (e) { + var e2 = e.parentNode; + + if (c[1] != 0) { + set_rollup_state(e,e2,'shown'); + } + else { + set_rollup_state(e,e2,'hidden'); + } + } + } + } +} diff --git a/rt/html/NoAuth/js/util.js b/rt/html/NoAuth/js/util.js new file mode 100644 index 000000000..0de071ad3 --- /dev/null +++ b/rt/html/NoAuth/js/util.js @@ -0,0 +1,250 @@ +%# BEGIN BPS TAGGED BLOCK {{{ +%# +%# COPYRIGHT: +%# +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# <jesse@bestpractical.com> +%# +%# (Except where explicitly superseded by other copyright notices) +%# +%# +%# LICENSE: +%# +%# 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 +%# from www.gnu.org. +%# +%# 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. +%# +%# 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., 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. +%# +%# +%# CONTRIBUTION SUBMISSION POLICY: +%# +%# (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. +%# +%# END BPS TAGGED BLOCK }}} +/* $(...) + Returns DOM node or array of nodes (if more then one argument passed). + If argument is node object allready then do nothing. + // Stolen from Prototype +*/ +function $() { + var elements = new Array(); + + for (var i = 0; i < arguments.length; i++) { + var element = arguments[i]; + if (typeof element == 'string') + element = document.getElementById(element); + + if (arguments.length == 1) + return element; + + elements.push(element); + } + + return elements; +} + +/* Visibility */ + +function show(id) { delClass( id, 'hidden' ) } +function hide(id) { addClass( id, 'hidden' ) } + +function hideshow(id) { return toggleVisibility( id ) } +function toggleVisibility(id) { + var e = $(id); + + if ( e.className.match( /\bhidden\b/ ) ) + show(e); + else + hide(e); + + return false; +} + +function setVisibility(id, visibility) { + if ( visibility ) show(id); + else hide(id); +} + +function switchVisibility(id1, id2) { + // Show both and then hide the one we want + show(id1); + show(id2); + hide(id2); + return false; +} + +/* Classes */ + +function addClass(id, value) { + var e = $(id); + if ( e.className.match( new RegExp('\b'+ value +'\b') ) ) + return; + e.className += e.className? ' '+value : value; +} + +function delClass(id, value) { + var e = $(id); + e.className = e.className.replace( new RegExp('\\s?\\b'+ value +'\\b', 'g'), '' ); +} + +/* Rollups */ + +function rollup(id) { + var e = $(id); + var e2 = e.parentNode; + + if (e.className.match(/\bhidden\b/)) { + set_rollup_state(e,e2,'shown'); + createCookie(id,1,365); + } + else { + set_rollup_state(e,e2,'hidden'); + createCookie(id,0,365); + } + return false; +} + +function set_rollup_state(e,e2,state) { + if (e && e2) { + if (state == 'shown') { + show(e); + delClass( e2, 'rolled-up' ); + } + else if (state == 'hidden') { + hide(e); + addClass( e2, 'rolled-up' ); + } + } +} + + +/* onload handlers */ + +var onLoadStack = new Array(); +var onLoadLastStack = new Array(); +var onLoadExecuted = 0; + +function onLoadHook(commandStr) { + if(typeof(commandStr) == "string") { + onLoadStack[ onLoadStack.length ] = commandStr; + return true; + } + return false; +} + +// some things *really* need to be done after everything else +function onLoadLastHook(commandStr) { + if(typeof(commandStr) == "string"){ + onLoadLastStack[onLoadLastStack.length] = commandStr; + return true; + } + return false; +} + +function doOnLoadHooks() { + if(onLoadExecuted) return; + + var i; + for ( i in onLoadStack ) { + eval( onLoadStack[i] ); + } + for ( i in onLoadLastStack ) { + eval( onLoadLastStack[i] ); + } + onLoadExecuted = 1; +} + +window.onload = doOnLoadHooks; + +/* calendar functions */ + +function openCalWindow(field) { + var objWindow = window.open('<%$RT::WebPath%>/Helpers/CalPopup.html?field='+field, + 'RT_Calendar', + 'height=235,width=285,scrollbars=1'); + objWindow.focus(); +} + +function createCalendarLink(input) { + var e = $(input); + if (e) { + var link = document.createElement('a'); + link.setAttribute('href', '#'); + + clickevent = function clickevent(e) { openCalWindow(input); return false; }; + if (! addEvent(link, "click", clickevent)) { + return false; + } + + var text = document.createTextNode('<% loc("Choose a date") %>'); + link.appendChild(text); + + var space = document.createTextNode(' '); + + e.parentNode.insertBefore(link, e.nextSibling); + e.parentNode.insertBefore(space, e.nextSibling); + + return true; + } + return false; +} + +/* other utils */ + +function focusElementById(id) { + var e = $(id); + if (e) e.focus(); +} + +function updateParentField(field, value) { + if (window.opener) { + window.opener.$(field).value = value; + window.close(); + } +} + +function addEvent(obj, sType, fn) { + if (obj.addEventListener) { + obj.addEventListener(sType, fn, false); + } else if (obj.attachEvent) { + var r = obj.attachEvent("on"+sType, fn); + } else { + return false; + } + return true; +} + +function setCheckbox(form, name, val) { + var myfield = form.getElementsByTagName('input'); + for ( var i = 0; i < myfield.length; i++ ) { + if ( name && myfield[i].name != name ) continue; + if ( myfield[i].type != 'checkbox' ) continue; + + myfield[i].checked = val; + } +} + |