
clkao at bestpractical
Nov 19, 2009, 6:16 AM
Post #1 of 1
(177 views)
Permalink
|
|
rt branch, 3.999-trunk, updated. a33a91c8459fc0657b4e43dfb315cb011b379762
|
|
The branch, 3.999-trunk has been updated via a33a91c8459fc0657b4e43dfb315cb011b379762 (commit) via 9ce349456667d3dbc809012df5a3613a9df9348f (commit) via f867e8da5d068910cd9e116f95cc39a30698a6c2 (commit) via c6e7d9e53b2fbbca7ddfa2b837cd20466e04ad0c (commit) via aa93e38aff424a81c2517c03b6943c136b9309f1 (commit) via d1b5ebdb334908b81b3e2a5dc16fb2edee9a3cd5 (commit) via 0f719cac311fd7c76dd592359fdc422cce418146 (commit) via 194ce5b763467eabd72ef6150672ef557a2e5406 (commit) via d04e32e8c6590e8025de5e1c534e3374a2e438de (commit) from a1b3ea1751828da0d1df04a65bd9be8fe5f75003 (commit) Summary of changes: lib/RT/Interface/Web/Handler.pm | 2 - share/html/Admin/Elements/CreateUserCalled | 50 ------ share/html/Admin/Elements/EditScrip | 198 ---------------------- share/html/Admin/Elements/EditScrips | 127 -------------- share/html/Admin/Elements/EditUserComments | 57 ------ share/html/Admin/Elements/ListGlobalCustomFields | 61 ------- share/html/Admin/Elements/ListGlobalScrips | 52 ------ share/html/Admin/Elements/QueueRightsForUser | 64 ------- share/html/Admin/Elements/SelectGroups | 62 ------- share/html/Admin/Elements/SelectModifyGroup | 57 ------ share/html/Admin/Elements/SelectModifyQueue | 57 ------ share/html/Admin/Elements/SelectModifyUser | 73 -------- share/html/Admin/Elements/SelectScrip | 72 -------- share/html/Admin/Elements/SelectScripAction | 73 -------- share/html/Admin/Elements/SelectScripCondition | 72 -------- share/html/Admin/Elements/SelectSingleOrMultiple | 67 -------- share/html/Admin/Elements/SelectStage | 75 -------- share/html/Admin/Elements/SelectTemplate | 87 ---------- share/html/Admin/Elements/SelectUsers | 66 ------- share/html/Elements/Callback | 53 ------ share/html/Elements/EditCustomField | 6 + share/html/Elements/MyRequests | 49 ------ share/html/Elements/MyTickets | 49 ------ share/html/Elements/Section | 51 ------ share/html/Elements/SelectKey | 47 ----- share/html/Elements/SelectSortOrder | 65 ------- share/html/Elements/SelectTicketTypes | 58 ------- share/html/Elements/TicketList | 70 -------- share/html/Elements/TitleBox | 51 ------ share/html/Elements/TitleBoxEnd | 51 ------ share/html/Elements/TitleBoxStart | 51 ------ 31 files changed, 6 insertions(+), 1967 deletions(-) delete mode 100755 share/html/Admin/Elements/CreateUserCalled delete mode 100755 share/html/Admin/Elements/EditScrip delete mode 100755 share/html/Admin/Elements/EditScrips delete mode 100755 share/html/Admin/Elements/EditUserComments delete mode 100755 share/html/Admin/Elements/ListGlobalCustomFields delete mode 100755 share/html/Admin/Elements/ListGlobalScrips delete mode 100755 share/html/Admin/Elements/QueueRightsForUser delete mode 100755 share/html/Admin/Elements/SelectGroups delete mode 100755 share/html/Admin/Elements/SelectModifyGroup delete mode 100755 share/html/Admin/Elements/SelectModifyQueue delete mode 100755 share/html/Admin/Elements/SelectModifyUser delete mode 100755 share/html/Admin/Elements/SelectScrip delete mode 100755 share/html/Admin/Elements/SelectScripAction delete mode 100755 share/html/Admin/Elements/SelectScripCondition delete mode 100755 share/html/Admin/Elements/SelectSingleOrMultiple delete mode 100644 share/html/Admin/Elements/SelectStage delete mode 100755 share/html/Admin/Elements/SelectTemplate delete mode 100755 share/html/Admin/Elements/SelectUsers delete mode 100755 share/html/Elements/Callback delete mode 100755 share/html/Elements/MyRequests delete mode 100755 share/html/Elements/MyTickets delete mode 100755 share/html/Elements/Section delete mode 100644 share/html/Elements/SelectKey delete mode 100755 share/html/Elements/SelectSortOrder delete mode 100755 share/html/Elements/SelectTicketTypes delete mode 100644 share/html/Elements/TicketList delete mode 100644 share/html/Elements/TitleBox delete mode 100644 share/html/Elements/TitleBoxEnd delete mode 100644 share/html/Elements/TitleBoxStart - Log ----------------------------------------------------------------- commit d04e32e8c6590e8025de5e1c534e3374a2e438de Author: Chia-liang Kao <clkao [at] bestpractical> Date: Thu Nov 19 20:21:09 2009 +0800 remove unused templates under admin/elements diff --git a/share/html/Admin/Elements/CreateUserCalled b/share/html/Admin/Elements/CreateUserCalled deleted file mode 100755 index f1dfd94..0000000 --- a/share/html/Admin/Elements/CreateUserCalled +++ /dev/null @@ -1,50 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 method="get" action="<% RT->config->get('web_path') %>/Admin/Users/Create.html"> -<&|/l&>New user called</&> <input name="name" size="10" /><input type="submit" class="button" value="<&|/l&>create</&>" /> -</form> diff --git a/share/html/Admin/Elements/EditScrip b/share/html/Admin/Elements/EditScrip deleted file mode 100755 index bc4e37e..0000000 --- a/share/html/Admin/Elements/EditScrip +++ /dev/null @@ -1,198 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<& /Elements/ListActions, actions => \@actions &> - -<form method="post" action="Scrip.html"> -<input type="hidden" class="hidden" name="id" value="<% $id %>" /> -<input type="hidden" class="hidden" name="queue" value="<% $queue %>" /> - -<&| /Widgets/TitleBox, title => _('Scrip Fields') &> -<table> - -<tr><td align="right"><&|/l&>description</&>:</td><td> -<input name="Scrip-<% $id %>-description" value="<% $ARGS{"Scrip-$id-description"} || $scrip->description || ''%>" /> -</td></tr> - -<tr><td align="right"><&|/l&>Condition</&>:</td><td> -<& /Admin/Elements/SelectScripCondition, - name => "Scrip-$id-scrip_condition", - default => $ARGS{"Scrip-$id-scrip_condition"} || $scrip->scrip_condition->id, -&></td></tr> - -<tr><td align="right"><&|/l&>Action</&>:</td><td> -<& /Admin/Elements/SelectScripAction, - name => "Scrip-$id-scrip_action", - default => $ARGS{"Scrip-$id-scrip_action"} || $scrip->scrip_action->id, -&></td></tr> - -<tr><td align="right"><&|/l&>Template</&>:</td><td> -<& /Admin/Elements/SelectTemplate, - name => "Scrip-$id-Template", - default => $ARGS{"Scrip-$id-Template"} || $scrip->template_obj->id, - queue => $queue, -&></td></tr> - -<tr><td align="right"><&|/l&>stage</&>:</td><td> -<& /Admin/Elements/SelectStage, - name => "Scrip-$id-stage", - default => $ARGS{"Scrip-$id-stage"} || $scrip->stage, -&></td></tr> - -</table> -</&> - -<& /Elements/Submit, - label => $SubmitLabel, - caption => _("Be sure to save your changes"), - reset => 1, -&><br /> - -<&| /Widgets/TitleBox, title => _('User Defined conditions and actions') &> -<table> -<tr><td colspan="2"> -<i><&|/l&>(Use these fields when you choose 'User Defined' for a condition or action)</&></i> -</td></tr> - -<tr><td class="labeltop"><&|/l&>Custom condition</&>:</td><td> -% my $code = $ARGS{"Scrip-$id-custom_is_applicable_code"} || $scrip->custom_is_applicable_code || ''; -% my $lines = @{[ $code =~ /\n/gs ]} + 3; -% $lines = $min_lines if $lines < $min_lines; -<textarea cols="80" rows="<% $lines %>" name="Scrip-<% $id %>-custom_is_applicable_code"><% $code %></textarea> -</td></tr> - -<tr><td class="labeltop"><&|/l&>Custom action preparation code</&>:</td><td> -% $code = $ARGS{"Scrip-$id-custom_prepare_code"} || $scrip->custom_prepare_code || ''; -% $lines = @{[ $code =~ /\n/gs ]} + 3; -% $lines = $min_lines if $lines < $min_lines; -<textarea cols="80" rows="<% $lines %>" name="Scrip-<% $id %>-custom_prepare_code"><% $code %></textarea> -</td></tr> - -<tr><td class="labeltop"><&|/l&>Custom action cleanup code</&>:</td><td> -% $code = $ARGS{"Scrip-$id-custom_commit_code"} || $scrip->custom_commit_code || ''; -% $lines = @{[ $code =~ /\n/gs ]} + 3; -% $lines = $min_lines if $lines < $min_lines; -<textarea cols="80" rows="<% $lines %>" name="Scrip-<% $id %>-custom_commit_code"><% $code %></textarea> -</td></tr> - -</table> -</&> - -<& /Elements/Submit, - caption => _("Be sure to save your changes"), - label => $SubmitLabel, - reset => 1, -&> - -</form> -<%init> - -my (@actions, $SubmitLabel); -my $scrip = RT::Model::Scrip->new( current_user => Jifty->web->current_user ); - -if ( $id ) { - $scrip->load( $id ); - unless ( $id = $scrip->id ) { - push @actions, _("Couldn't load scrip #%1", $id); - } - $SubmitLabel = _('Update'); -} - -unless ( $id ) { - $id = 'new'; - $SubmitLabel = _('Create'); -} - -my $min_lines = 10; - -</%init> - -<%ARGS> -$id => undef -$title => undef -$queue => 0 -</%ARGS> - -<%METHOD Process> -<%ARGS> -$id => undef -$queue => undef -</%ARGS> -<%INIT> -return ($id) unless $id; - -my $scrip = RT::Model::Scrip->new( current_user => Jifty->web->current_user ); -if ( $id eq 'new' ) { - return $scrip->create( - queue => $queue, - scrip_action => $ARGS{"Scrip-new-scrip_action"}, - scrip_condition => $ARGS{"Scrip-new-scrip_condition"}, - template => $ARGS{"Scrip-new-Template"}, - description => $ARGS{"Scrip-new-description"}, - custom_prepare_code => $ARGS{"Scrip-new-custom_prepare_code"}, - custom_commit_code => $ARGS{"Scrip-new-custom_commit_code"}, - custom_is_applicable_code => $ARGS{"Scrip-new-custom_is_applicable_code"}, - stage => $ARGS{"Scrip-new-stage"}, - ); -} -else { - $scrip->load( $id ); - return (undef, _("Couldn't load scrip #%1", $id)) - unless $scrip->id; - - my @attribs = qw(queue scrip_action scrip_condition template stage - description custom_prepare_code custom_commit_code custom_is_applicable_code); - my @results = update_record_object( - attributes_ref => \@attribs, - attribute_prefix => 'Scrip-'.$scrip->id, - object => $scrip, - args_ref => \%ARGS - ); - return ($scrip->id, @results); -} -</%INIT> -</%METHOD> diff --git a/share/html/Admin/Elements/EditScrips b/share/html/Admin/Elements/EditScrips deleted file mode 100755 index b5ca46c..0000000 --- a/share/html/Admin/Elements/EditScrips +++ /dev/null @@ -1,127 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<& /Elements/ListActions, actions => \@actions &> - -<form action="Scrips.html" method="post"> -<input type="hidden" class="hidden" name="id" value="<% $id %>" /> - -<h2><&|/l&>Current Scrips</&></h2> -<& /Elements/CollectionList, - order_by => 'description', - order => 'ASC', - rows => 100, - %ARGS, - format => $format, - displayformat => "__CheckBox.{DeleteScrip}__, $format", - collection => $Scrips, - allow_sorting => 1, - pass_arguments => [ qw(Query format Rows Page order order_by id) ], -&> - -% if ( $Scrips->count ) { -<p><i><&|/l&>(Check box to delete)</&></i></p> -% } else { -<p><i><&|/l&>(No scrips)</&></i></p> - -% } -<& /Elements/Submit, - caption => _("Delete selected scrips"), - label => _("Delete") -&> -</form> - -<%init> -my (@actions); - -my $Scrips = RT::Model::ScripCollection->new( current_user => Jifty->web->current_user ); - - -my $queue_obj = RT::Model::Queue->new( current_user => Jifty->web->current_user ); -if ( $id ) { - $queue_obj->load( $id ); - unless ( $queue_obj->id ) { - push @actions, _("Couldn't load queue #%1", $id) - } -} - -if ($queue_obj->id) { - $Scrips->limit_to_queue($id); -} -else { - $Scrips->limit_to_global(); -} - - -# {{{ deal with modifying and deleting existing scrips -# we still support DeleteScrip-id format but array is preferred -foreach my $id ( grep $_, @delete_scrip, map /^DeleteScrip-(\d+)/, keys %ARGS ) { - my $scrip = RT::Model::Scrip->new( current_user => Jifty->web->current_user ); - $scrip->load( $id ); - my ($retval, $msg) = $scrip->delete; - if ($retval) { - push @actions, _("Scrip deleted"); - } - else { - push @actions, $msg; - } -} - -my $dir_path = $m->request_comp->dir_path; -$format ||= qq{'<a href="__WebPath__$dir_path/Scrip.html?id=__id__&Queue=$id">__id__</a>/TITLE:#'} - .qq{,'<a href="__WebPath__$dir_path/Scrip.html?id=__id__&Queue=$id">__description__</a>/TITLE:description'} - .q{,__Stage__, __Condition__, __Action__, __Template__}; - -# }}} -</%init> - -<%ARGS> -$id => undef -$title => undef -$format => undef - [at] delete_scri => () -</%ARGS> diff --git a/share/html/Admin/Elements/EditUserComments b/share/html/Admin/Elements/EditUserComments deleted file mode 100755 index 15d9904..0000000 --- a/share/html/Admin/Elements/EditUserComments +++ /dev/null @@ -1,57 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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 }}} -<&| /_elements/wrapper, title => "comments about $name" &> -<&|/l&>These comments aren't generally visible to the user</&>:<br /> -<input type="hidden" class="hidden" name="id" value="<%$id%>" /> -<textarea cols="60" rows="15" wrap="soft" name="comments"><% $user_object->comments %></textarea> -</form> - -</&> -<%ARGS> -$user_object => undef -</%ARGS> diff --git a/share/html/Admin/Elements/ListGlobalCustomFields b/share/html/Admin/Elements/ListGlobalCustomFields deleted file mode 100755 index 5a887fb..0000000 --- a/share/html/Admin/Elements/ListGlobalCustomFields +++ /dev/null @@ -1,61 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -% my $count = 0; -% while (my $CustomFieldObj = $CustomFields->next) { -% $count++; -<font size="-1"><%$CustomFieldObj->id%>/<% _($CustomFieldObj->type) %>/<%$CustomFieldObj->name%>: <%$CustomFieldObj->description%></font> -<br /> -% } -% if (!$count) { -<font size="-1"><&|/l&>(No custom fields)</&></font> -% } - -<%init> -my $CustomFields = RT::Model::CustomFieldCollection->new( current_user => Jifty->web->current_user ); -$CustomFields->limit_to_global(); -</%INIT> diff --git a/share/html/Admin/Elements/ListGlobalScrips b/share/html/Admin/Elements/ListGlobalScrips deleted file mode 100755 index 5ddeda5..0000000 --- a/share/html/Admin/Elements/ListGlobalScrips +++ /dev/null @@ -1,52 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} - -<p><i><&|/l&>(No scrips)</&></i></p> - -<%init> -</%init> diff --git a/share/html/Admin/Elements/QueueRightsForUser b/share/html/Admin/Elements/QueueRightsForUser deleted file mode 100755 index 50f002d..0000000 --- a/share/html/Admin/Elements/QueueRightsForUser +++ /dev/null @@ -1,64 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<ul> -%while(my $ACE = $ACL->next) { - -<li><checkbox name="delete_ace_<%$ACE->id%>" value="1"> <% _($ACE->right_name) %> (<%$ACE->user_object->real_name%>) - -%} -</ul> - -<%INIT> -my $ACL = RT::Model::ACECollection->new( current_user => Jifty->web->current_user ); -$ACL->limit_to_queue($queue_obj->id); -$ACL->limit_principal_to_user($principal_id); -</%INIT> -<%ARGS> -$principal => undef -$queue_obj => undef -</%ARGS> diff --git a/share/html/Admin/Elements/SelectGroups b/share/html/Admin/Elements/SelectGroups deleted file mode 100755 index a818889..0000000 --- a/share/html/Admin/Elements/SelectGroups +++ /dev/null @@ -1,62 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<select multiple="multiple" name="<%$name%>" size="10"> -%while (my $group = $groups->next) { -<option value="<%$group->id%>"><%$group->name%> -%} -</select> - -<%INIT> -my $groups = RT::Model::GroupCollection->new( current_user => Jifty->web->current_user ); -$groups->limit(column => 'domain', operator => '=', value => $domain); - -</%INIT> -<%ARGS> -$name => 'groups' -$domain => 'UserDefined'; -</%ARGS> diff --git a/share/html/Admin/Elements/SelectModifyGroup b/share/html/Admin/Elements/SelectModifyGroup deleted file mode 100755 index d394676..0000000 --- a/share/html/Admin/Elements/SelectModifyGroup +++ /dev/null @@ -1,57 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -%while ( $Group = $Groups->next) { -<a href="Modify.html?id=<%$Group->id%>"><%$Group->id%>: <%$Group->name%></a><br /> -%} -<%INIT> -my ($Group); -my $Groups = RT::Model::GroupCollection->new( current_user => Jifty->web->current_user ); -$Groups->find_all_rows; -</%INIT> -<%ARGS> -</%ARGS> diff --git a/share/html/Admin/Elements/SelectModifyQueue b/share/html/Admin/Elements/SelectModifyQueue deleted file mode 100755 index 3f2da0d..0000000 --- a/share/html/Admin/Elements/SelectModifyQueue +++ /dev/null @@ -1,57 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -%while ( $queue = $queues->next) { -<a href="Modify.html?id=<%$queue->id%>"><%$queue->id%>: <%$queue->name%></a><br /> -%} -<%INIT> -my ($queue); -my $queues = RT::Model::QueueCollection->new( current_user => Jifty->web->current_user ); -$queues->find_all_rows; -</%INIT> -<%ARGS> -</%ARGS> diff --git a/share/html/Admin/Elements/SelectScrip b/share/html/Admin/Elements/SelectScrip deleted file mode 100755 index 0ccb776..0000000 --- a/share/html/Admin/Elements/SelectScrip +++ /dev/null @@ -1,72 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<select name="<%$name%>"> -<option value="" -<% $default eq undef && qq[ selected="selected"] |n %> ->-</option> -%while (my $Scrip = $Scrips->next) { -<option value="<% $Scrip->id %>" -<% $Scrip->id == $default && qq[ selected="selected"] |n %> -><% _($Scrip->name) %> -</option> -%} -</select> - -<%INIT> -my $Scrips = RT::Model::ScripCollection->new( current_user => Jifty->web->current_user ); -$Scrips->find_all_rows; - - - -</%INIT> -<%ARGS> - -$default => undef -$name => 'scrip' - -</%ARGS> diff --git a/share/html/Admin/Elements/SelectSingleOrMultiple b/share/html/Admin/Elements/SelectSingleOrMultiple deleted file mode 100755 index 5a671a3..0000000 --- a/share/html/Admin/Elements/SelectSingleOrMultiple +++ /dev/null @@ -1,67 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} - <select name="<%$name%>"> - <option value="1" <%$SingleDefault|n%>><&|/l&>Single</&></option> - <option value="0" <%$MultipleDefault|n%>><&|/l&>Multiple</&></option> - </select> - - -<%INIT> -my ($SingleDefault, $MultipleDefault); -if ($default == 1) { - $Singledefault = qq[ selected="selected"]; -} -elsif ($default == 0 ) { - $Multipledefault = qq[ selected="selected"]; -} - -</%INIT> -<%ARGS> -$name => 'single' -$default => 1 -</%ARGS> diff --git a/share/html/Admin/Elements/SelectUsers b/share/html/Admin/Elements/SelectUsers deleted file mode 100755 index 8cb39ee..0000000 --- a/share/html/Admin/Elements/SelectUsers +++ /dev/null @@ -1,66 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<select multiple="multiple" name="<% $name %>" size="10"> -% while ( my $user = $users->next ) { -<option value="<% $user->id %>">\ -<& /Elements/ShowUser, user => $user &>\ -</option> -% } -</select> - -<%INIT> -my $users = RT::Model::UserCollection->new( current_user => Jifty->web->current_user ); - -$users->limit(column => 'id', value => RT->system_user->id, operator => '!=' ); -$users->limit(column => 'id', value => RT->nobody->id, operator => '!=' ); -$users->limit_to_privileged(); - -</%INIT> -<%ARGS> -$name => 'users' -</%ARGS> commit 194ce5b763467eabd72ef6150672ef557a2e5406 Author: Chia-liang Kao <clkao [at] bestpractical> Date: Thu Nov 19 20:25:10 2009 +0800 Element/Callback is said to be deprecated. Gone now diff --git a/lib/RT/Interface/Web/Handler.pm b/lib/RT/Interface/Web/Handler.pm index b7ae24a..17dffa3 100644 --- a/lib/RT/Interface/Web/Handler.pm +++ b/lib/RT/Interface/Web/Handler.pm @@ -127,8 +127,6 @@ package Jifty::View::Mason::Handler; =head2 callback -Method replaces deprecated component C<Element/Callback>. - Takes hash with optional C<callback_page>, C<callback_name> and C<callback_once> arguments, other arguments are passed throught to callback components. diff --git a/share/html/Elements/Callback b/share/html/Elements/Callback deleted file mode 100755 index cdb4822..0000000 --- a/share/html/Elements/Callback +++ /dev/null @@ -1,53 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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> -$ARGS{'callback_page'} = delete $ARGS{'page'} || $m->callers(1)->path; -$ARGS{'callback_name'} = delete $ARGS{'_callback_name'}; -Jifty->log->debug("$ARGS{'callback_page'} calls old style callback, use \$m->callback"); -return $m->callback( %ARGS ); -</%INIT> commit 0f719cac311fd7c76dd592359fdc422cce418146 Author: Chia-liang Kao <clkao [at] bestpractical> Date: Thu Nov 19 20:33:55 2009 +0800 document untested EditCustomField variants. diff --git a/share/html/Elements/EditCustomField b/share/html/Elements/EditCustomField index de60196..4c88413 100644 --- a/share/html/Elements/EditCustomField +++ b/share/html/Elements/EditCustomField @@ -80,6 +80,12 @@ my $EditComponent = "EditCustomField$Type"; $m->callback( callback_name => 'EditComponentname', name => \$EditComponent, custom_field => $custom_field, object => $object ); $EditComponent = "EditCustomField$Type" unless $m->comp_exists($EditComponent); +# NOTEST: This $m->comp might call one of the untested components: +# /Elements/EditCustomFieldAutocomplete +# /Elements/EditCustomFieldBinary +# /Elements/EditCustomFieldImage +# /Elements/EditCustomFieldWikitext + return $m->comp( $EditComponent, %ARGS, commit d1b5ebdb334908b81b3e2a5dc16fb2edee9a3cd5 Author: Chia-liang Kao <clkao [at] bestpractical> Date: Thu Nov 19 20:35:24 2009 +0800 remove more unused admin/elements templates. diff --git a/share/html/Admin/Elements/SelectModifyUser b/share/html/Admin/Elements/SelectModifyUser deleted file mode 100755 index 0d87feb..0000000 --- a/share/html/Admin/Elements/SelectModifyUser +++ /dev/null @@ -1,73 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -%while ( $user = $users->next) { -<a href="Modify.html?id=<%$user->id%>"><%$user->id%>: <& /Elements/ShowUser, user => $user &></a><br /> -%} -<%INIT> -my ($user); -my $users = RT::Model::UserCollection->new( current_user => Jifty->web->current_user ); -$users->limit(column => 'id', - value => RT->system_user->id, - operator => '!=' ); - -if (defined $id_like) { -$users->limit(column => 'name', - value => $id_like, - operator => 'LIKE' ); -} -if (defined $email_like) { -$users->limit(column => 'email', - value => $email_like, - operator => 'LIKE'); - -} -</%INIT> -<%ARGS> -$id_like => undef -$email_like => undef -</%ARGS> diff --git a/share/html/Admin/Elements/SelectScripAction b/share/html/Admin/Elements/SelectScripAction deleted file mode 100755 index daf671a..0000000 --- a/share/html/Admin/Elements/SelectScripAction +++ /dev/null @@ -1,73 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<select name="<%$name%>"> -<option value="" -<% ! defined $default && qq[ selected="selected"] |n %> ->-</option> -%while (my $scrip_action = $scrip_actions->next) { -<option value="<%$scrip_action->id%>" -<% defined $default && $scrip_action->id == $default && qq[ selected="selected"] |n %> -><% _($scrip_action->name) %> -</option> -%} -</select> - -<%INIT> -my $scrip_actions = RT::Model::ScripActionCollection->new( current_user => Jifty->web->current_user ); -$scrip_actions->find_all_rows; -$scrip_actions->order_by(column => 'name'); - - - -</%INIT> -<%ARGS> - -$default => undef -$name => 'scrip_action' - -</%ARGS> diff --git a/share/html/Admin/Elements/SelectScripCondition b/share/html/Admin/Elements/SelectScripCondition deleted file mode 100755 index 06e24cb..0000000 --- a/share/html/Admin/Elements/SelectScripCondition +++ /dev/null @@ -1,72 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<select name="<%$name%>"> -<option value="" -<% ! defined $default && qq[ selected="selected"] |n %> ->-</option> -%while (my $scrip_condition = $scrip_conditions->next) { -<option value="<%$scrip_condition->id%>" -<% defined $default && $scrip_condition->id == $default && qq[ selected="selected"] |n %> -><% _($scrip_condition->name) %> -</option> -%} -</select> - -<%INIT> -my $scrip_conditions = RT::Model::ScripConditionCollection->new( current_user => Jifty->web->current_user ); -$scrip_conditions->find_all_rows; -$scrip_conditions->order_by(column => 'name'); - - -</%INIT> -<%ARGS> - -$default => undef -$name => 'scrip_condition' - -</%ARGS> diff --git a/share/html/Admin/Elements/SelectStage b/share/html/Admin/Elements/SelectStage deleted file mode 100644 index 27e5003..0000000 --- a/share/html/Admin/Elements/SelectStage +++ /dev/null @@ -1,75 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<select name="<%$name%>"> -% foreach my $stage (@stages) { - -%# allow [stage, display] in place of a scalar stage name -% my ($value, $display) = ref($stage) ? @$stage : ($stage, $stage); - -<option value="<%$value%>" -<% ($value eq $default) && qq[ selected="selected"] |n %> -><% _($display) %> -</option> - -% } -</select> -<%INIT> -if ( !defined $default || $default eq '') { - $default = 'transaction_create'; -} -my @stages = 'transaction_create'; -push @stages, RT->config->get('use_transaction_batch') - ? 'transaction_batch' - : ['transaction_batch', 'transaction_batch (DISABLED)']; - -push @stages, 'disabled'; -</%INIT> -<%ARGS> -$default => 'transaction_create' -$name => 'stage' -</%ARGS> diff --git a/share/html/Admin/Elements/SelectTemplate b/share/html/Admin/Elements/SelectTemplate deleted file mode 100755 index 70e5563..0000000 --- a/share/html/Admin/Elements/SelectTemplate +++ /dev/null @@ -1,87 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<select name="<%$name%>"> -<option value="" -<% defined($default) && $default eq 'none' && qq[ selected="selected"] |n %> ->-</option> -%while (my $Template = $PrimaryTemplates->next) { -<option value="<%$Template->id%>" -<% ($Template->id == $default) && qq[ selected="selected"] |n %> -><% _($Template->name) %> -</option> -%} -%while (my $Template = $OtherTemplates->next) { -<option value="<%$Template->id%>" -<% defined($default) && ($Template->id == $default) && qq[ selected="selected"] |n %> -><&|/l, _($Template->name) &>Global template: %1</&> -</option> -%} -</select> - -<%INIT> - - -my $PrimaryTemplates = RT::Model::TemplateCollection->new( current_user => Jifty->web->current_user ); -if ($queue != 0) { -$PrimaryTemplates->limit_to_queue($queue); -$PrimaryTemplates->order_by(column => 'name'); -} - -my $OtherTemplates = RT::Model::TemplateCollection->new( current_user => Jifty->web->current_user ); -$OtherTemplates->limit_to_global($default_queue); -$OtherTemplates->order_by(column => 'name'); - -</%INIT> -<%ARGS> - -$queue => undef -$default => 'none' -$default_queue => undef -$name => 'template' - -</%ARGS> commit aa93e38aff424a81c2517c03b6943c136b9309f1 Author: Chia-liang Kao <clkao [at] bestpractical> Date: Thu Nov 19 21:05:06 2009 +0800 Elements/SelectKey was removed on 3.8 and somehow slipped in here. diff --git a/share/html/Elements/SelectKey b/share/html/Elements/SelectKey deleted file mode 100644 index db1c90c..0000000 --- a/share/html/Elements/SelectKey +++ /dev/null @@ -1,47 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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 }}} commit c6e7d9e53b2fbbca7ddfa2b837cd20466e04ad0c Author: Chia-liang Kao <clkao [at] bestpractical> Date: Thu Nov 19 21:19:06 2009 +0800 These were replaced by portlets with saved searches. diff --git a/share/html/Elements/MyRequests b/share/html/Elements/MyRequests deleted file mode 100755 index b9e1625..0000000 --- a/share/html/Elements/MyRequests +++ /dev/null @@ -1,49 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -%# DEPRECATED -<& /Elements/ShowSearch, name => 'My Requests' &> diff --git a/share/html/Elements/MyTickets b/share/html/Elements/MyTickets deleted file mode 100755 index 494091f..0000000 --- a/share/html/Elements/MyTickets +++ /dev/null @@ -1,49 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -%# DEPRECATED -<& /Elements/ShowSearch, name => 'My Tickets' &> commit f867e8da5d068910cd9e116f95cc39a30698a6c2 Author: Chia-liang Kao <clkao [at] bestpractical> Date: Thu Nov 19 21:20:49 2009 +0800 remove old titlebox template compatibility. diff --git a/share/html/Elements/TitleBox b/share/html/Elements/TitleBox deleted file mode 100644 index 5329483..0000000 --- a/share/html/Elements/TitleBox +++ /dev/null @@ -1,51 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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> -# For compatibility with 3.4 -$m->comp('/Widgets/TitleBox', %ARGS ); -</%init> diff --git a/share/html/Elements/TitleBoxEnd b/share/html/Elements/TitleBoxEnd deleted file mode 100644 index d60c9ff..0000000 --- a/share/html/Elements/TitleBoxEnd +++ /dev/null @@ -1,51 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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> -# For compatibility with 3.4 -$m->comp('/Widgets/TitleBoxEnd', %ARGS ); -</%init> diff --git a/share/html/Elements/TitleBoxStart b/share/html/Elements/TitleBoxStart deleted file mode 100644 index 1d48627..0000000 --- a/share/html/Elements/TitleBoxStart +++ /dev/null @@ -1,51 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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> -# For compatibility with 3.4 -$m->comp('/Widgets/TitleBoxStart', %ARGS ); -</%init> commit 9ce349456667d3dbc809012df5a3613a9df9348f Author: Chia-liang Kao <clkao [at] bestpractical> Date: Thu Nov 19 21:26:34 2009 +0800 unused. diff --git a/share/html/Elements/Section b/share/html/Elements/Section deleted file mode 100755 index be3a7dd..0000000 --- a/share/html/Elements/Section +++ /dev/null @@ -1,51 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<h1><%$title%></h1> -<%ARGS> -$title => undef -</%ARGS> diff --git a/share/html/Elements/SelectSortOrder b/share/html/Elements/SelectSortOrder deleted file mode 100755 index f488b70..0000000 --- a/share/html/Elements/SelectSortOrder +++ /dev/null @@ -1,65 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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 }}} -<select name="<%$name%>"> -%foreach my $order (@orders) { -<option value="<%$order%>"<%$order eq $default && qq[ selected="selected"] |n %>> -<% shift @order_names %> -</option> -% } -</select> - -<%INIT> -my @orders = qw (ASC DESC); -my @order_names = (_('Ascending'), _('Descending')); - -</%INIT> - -<%ARGS> -$name => 'sort_order' -$default => 'ASC' -</%ARGS> diff --git a/share/html/Elements/SelectTicketTypes b/share/html/Elements/SelectTicketTypes deleted file mode 100755 index ac32934..0000000 --- a/share/html/Elements/SelectTicketTypes +++ /dev/null @@ -1,58 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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 }}} -<select name="<%$name%>"> -%foreach (@types) { -<option value="<% $_ %>"<% ($_ eq $default) && qq[ selected="selected"] |n %>><% _($_) %> -%} -</select> - -<%ARGS> -$name => 'tick_type' -$default => undef - [at] type => qw(Approval Ticket) -</%ARGS> diff --git a/share/html/Elements/TicketList b/share/html/Elements/TicketList deleted file mode 100644 index 3faf1f9..0000000 --- a/share/html/Elements/TicketList +++ /dev/null @@ -1,70 +0,0 @@ -%# BEGIN BPS TAGGED BLOCK {{{ -%# -%# COPYRIGHT: -%# -%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC -%# <jesse [at] bestpractical> -%# -%# (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/licenses/old-licenses/gpl-2.0.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> -$m->comp( - '/Elements/CollectionList', - %ARGS, - class => 'RT::Model::TicketCollection' - ); -</%INIT> -<%ARGS> -$collection => undef -$query => undef -$format => RT->config->get('default_search_result_format') -$display_format => undef -$order => undef -$order_by => undef -$rows => 50 -$page => 1 -$title => _('Ticket Search') -$base_url => undef -$allow_sorting => undef -$show_navigation => 1 -$show_header => 1 -$show_empty => 0 -</%ARGS> commit a33a91c8459fc0657b4e43dfb315cb011b379762 Merge: a1b3ea1 9ce3494 Author: Chia-liang Kao <clkao [at] bestpractical> Date: Thu Nov 19 22:15:01 2009 +0800 Merge branch 'topic/unused-templates' ----------------------------------------------------------------------- _______________________________________________ Rt-commit mailing list Rt-commit [at] lists http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit
|