[Rt-commit] rt branch, history-filter, updated. rt-3.8.8-99-g1eacc03
Shawn Moore
sartak at bestpractical.com
Tue Jun 15 18:23:54 EDT 2010
The branch, history-filter has been updated
via 1eacc031900d1a08afd1a17a71a2ed64aa0d19f5 (commit)
from f322df283a3fd63935054126f32d737e47c93409 (commit)
Summary of changes:
.../Ticket/Elements/{ShowMembers => FilterHistory} | 28 ++++++-------------
share/html/Ticket/Elements/ShowHistory | 1 +
2 files changed, 10 insertions(+), 19 deletions(-)
copy share/html/Ticket/Elements/{ShowMembers => FilterHistory} (84%)
mode change 100755 => 100644
- Log -----------------------------------------------------------------
commit 1eacc031900d1a08afd1a17a71a2ed64aa0d19f5
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Jun 15 18:24:42 2010 -0400
First pass at FilterHistory
diff --git a/share/html/Ticket/Elements/FilterHistory b/share/html/Ticket/Elements/FilterHistory
new file mode 100644
index 0000000..021ae8e
--- /dev/null
+++ b/share/html/Ticket/Elements/FilterHistory
@@ -0,0 +1,59 @@
+%# BEGIN BPS TAGGED BLOCK {{{
+%#
+%# COPYRIGHT:
+%#
+%# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC
+%# <jesse at 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/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>
+% my %seen;
+% for my $type (RT::Transaction->AllTypes) {
+% my $filter_type = RT::Transaction->TypeMetadata(Type => $type, Field => 'FilterType');
+% $filter_type ||= $type;
+% next if $seen{$filter_type}++;
+
+ <li>
+ <input type="checkbox" class="checkbox" name="FilterHistory-<%$filter_type%>" value="1" checked="checked" /><&|/l&><%$filter_type%></&><br />
+ </li>
+% }
+</ul>
diff --git a/share/html/Ticket/Elements/ShowHistory b/share/html/Ticket/Elements/ShowHistory
index d859483..d536ffd 100755
--- a/share/html/Ticket/Elements/ShowHistory
+++ b/share/html/Ticket/Elements/ShowHistory
@@ -78,6 +78,7 @@ if ($ShowDisplayModes or $ShowTitle) {
</%perl>
<div class="history">
<& /Widgets/TitleBoxStart, title => $title, titleright_raw => $titleright &>
+<& /Ticket/Elements/FilterHistory &>
% }
<div id="ticket-history">
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list