[Rt-commit] r4449 - in RT-TicketWhiteboard: . html/Ticket lib/RT
jesse at bestpractical.com
jesse at bestpractical.com
Mon Jan 30 21:23:13 EST 2006
Author: jesse
Date: Mon Jan 30 21:23:12 2006
New Revision: 4449
Added:
RT-TicketWhiteboard/html/Callbacks/RT-TicketWhiteboard/Ticket/Elements/ShowHistory/
RT-TicketWhiteboard/html/Callbacks/RT-TicketWhiteboard/Ticket/Elements/ShowHistory/SkipTransaction
Modified:
RT-TicketWhiteboard/ (props changed)
RT-TicketWhiteboard/MANIFEST
RT-TicketWhiteboard/META.yml
RT-TicketWhiteboard/Makefile
RT-TicketWhiteboard/html/Ticket/Whiteboard.html
RT-TicketWhiteboard/lib/RT/TicketWhiteboard.pm
Log:
r22966 at truegrounds: jesse | 2006-01-26 04:18:48 -0500
* Added transaction skipping and expand/collapse
Modified: RT-TicketWhiteboard/MANIFEST
==============================================================================
--- RT-TicketWhiteboard/MANIFEST (original)
+++ RT-TicketWhiteboard/MANIFEST Mon Jan 30 21:23:12 2006
@@ -3,6 +3,7 @@
html/Callbacks/RT-TicketWhiteboard/Ticket/Display.html/BeforeDisplay
html/Callbacks/RT-TicketWhiteboard/Ticket/Display.html/BeforeShowHistory
html/Callbacks/RT-TicketWhiteboard/Ticket/Elements/EditCustomFields/MassageCustomFields
+html/Callbacks/RT-TicketWhiteboard/Ticket/Elements/ShowHistory/SkipTransaction
html/Ticket/ahah.js
html/Ticket/EditWhiteboard.html
html/Ticket/Whiteboard.html
@@ -21,6 +22,5 @@
MANIFEST This list of files
MANIFEST.SKIP
META.yml
-pm_to_blib
README
SIGNATURE
Modified: RT-TicketWhiteboard/META.yml
==============================================================================
--- RT-TicketWhiteboard/META.yml (original)
+++ RT-TicketWhiteboard/META.yml Mon Jan 30 21:23:12 2006
@@ -1,5 +1,5 @@
abstract: RT TicketWhiteboard Extension
-author: Jesse Vincent <jesse at bestpractical.com>
+author: 'Jesse Vincent <jesse at bestpractical.com>'
distribution_type: module
generated_by: Module::Install version 0.52
license: GPL version 2
@@ -9,4 +9,4 @@
- html
- inc
- t
-version: 1.3
+version: 1.4
Modified: RT-TicketWhiteboard/Makefile
==============================================================================
--- RT-TicketWhiteboard/Makefile (original)
+++ RT-TicketWhiteboard/Makefile Mon Jan 30 21:23:12 2006
@@ -19,8 +19,7 @@
# NO_META => q[1]
# PL_FILES => { }
# PREREQ_PM => { }
-# VERSION => q[1.3]
-# dist => { PREOP=>q[$(PERL) -I. -MModule::Install::Admin -e "dist_preop(q($(DISTVNAME)))"] }
+# VERSION => q[1.5]
# --- MakeMaker post_initialize section:
@@ -60,11 +59,11 @@
DFSEP = $(DIRFILESEP)
NAME = RT::TicketWhiteboard
NAME_SYM = RT_TicketWhiteboard
-VERSION = 1.3
+VERSION = 1.5
VERSION_MACRO = VERSION
-VERSION_SYM = 1_3
+VERSION_SYM = 1_5
DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\"
-XS_VERSION = 1.3
+XS_VERSION = 1.5
XS_VERSION_MACRO = XS_VERSION
XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\"
INST_ARCHLIB = blib/arch
@@ -242,7 +241,7 @@
COMPRESS = gzip --best
SUFFIX = .gz
SHAR = shar
-PREOP = $(PERL) -I. -MModule::Install::Admin -e "dist_preop(q($(DISTVNAME)))"
+PREOP = $(NOECHO) $(NOOP)
POSTOP = $(NOECHO) $(NOOP)
TO_UNIX = $(NOECHO) $(NOOP)
CI = ci -u
@@ -250,7 +249,7 @@
DIST_CP = best
DIST_DEFAULT = tardist
DISTNAME = RT-TicketWhiteboard
-DISTVNAME = RT-TicketWhiteboard-1.3
+DISTVNAME = RT-TicketWhiteboard-1.5
# --- MakeMaker macro section:
@@ -752,7 +751,7 @@
# --- MakeMaker ppd section:
# Creates a PPD (Perl Package Description) for a binary distribution.
ppd:
- $(NOECHO) $(ECHO) '<SOFTPKG NAME="$(DISTNAME)" VERSION="1,3,0,0">' > $(DISTNAME).ppd
+ $(NOECHO) $(ECHO) '<SOFTPKG NAME="$(DISTNAME)" VERSION="1,5,0,0">' > $(DISTNAME).ppd
$(NOECHO) $(ECHO) ' <TITLE>$(DISTNAME)</TITLE>' >> $(DISTNAME).ppd
$(NOECHO) $(ECHO) ' <ABSTRACT>RT TicketWhiteboard Extension</ABSTRACT>' >> $(DISTNAME).ppd
$(NOECHO) $(ECHO) ' <AUTHOR>Jesse Vincent <jesse at bestpractical.com></AUTHOR>' >> $(DISTNAME).ppd
@@ -780,24 +779,6 @@
# End.
# Postamble by Module::Install 0.52
-# --- Module::Install::Admin::Makefile section:
-
-realclean purge ::
- $(RM_F) $(DISTVNAME).tar$(SUFFIX)
- $(RM_RF) inc MANIFEST.bak _build
- $(PERL) -I. -MModule::Install::Admin -e "remove_meta()"
-
-reset :: purge
-
-upload :: test dist
- cpan-upload -verbose $(DISTVNAME).tar$(SUFFIX)
-
-grok ::
- perldoc Module::Install
-
-distsign ::
- cpansign -s
-
install ::
$(NOECHO) $(PERL) -MExtUtils::Install -e "install({q(html), q(/opt/rt3/share/html)})"
Added: RT-TicketWhiteboard/html/Callbacks/RT-TicketWhiteboard/Ticket/Elements/ShowHistory/SkipTransaction
==============================================================================
--- (empty file)
+++ RT-TicketWhiteboard/html/Callbacks/RT-TicketWhiteboard/Ticket/Elements/ShowHistory/SkipTransaction Mon Jan 30 21:23:12 2006
@@ -0,0 +1,13 @@
+<%args>
+$Transaction => undef
+$skip => undef
+</%args>
+<%init>
+return unless ( $Transaction->Type eq 'CustomField' and $Transaction->Field );
+
+my $cf = RT::CustomField->new( $session{CurrentUser} );
+$cf->Load( $Transaction->Field );
+
+$$skip = 1 if ( $cf->Name eq 'Whiteboard' );
+
+</%init>
Modified: RT-TicketWhiteboard/html/Ticket/Whiteboard.html
==============================================================================
--- RT-TicketWhiteboard/html/Ticket/Whiteboard.html (original)
+++ RT-TicketWhiteboard/html/Ticket/Whiteboard.html Mon Jan 30 21:23:12 2006
@@ -17,7 +17,18 @@
% if ($whiteboard->CurrentUserHasRight('ModifyCustomField')) {
<a align="right" valign="bottom" href="<%$RT::WebPath%>/Ticket/EditWhiteboard.html?id=<%$ticket->id%>" onClick="ahah('<%$RT::WebPath%>/Ticket/EditWhiteboard.html?id=<%$ticket->id%>', 'whiteboard'); return false;" >[<&|/l&>Edit</&>]</a>
-<span id="showall"><a href="#" onClick="document.getElementById('whiteboardinner').style.height = 'auto'; document.getElementById('showall').style.visibility='hidden'; return false;" >[<&|/l&>Show all</&>]</a></div>
+<span id="showall" ><a href="#" onClick="var wb = document.getElementById('whiteboardinner');
+ wb.style.overflow = 'visible';
+ wb.style.height = 'auto';
+ document.getElementById('showsome').style.display='inline';
+ document.getElementById('showall').style.display='none';
+ return false;" >[<&|/l&>Expand</&>]</a></span>
+<span id="showsome" style="display: none;"><a href="#" onClick="var wb = document.getElementById('whiteboardinner');
+ wb.style.overflow = 'hidden';
+ wb.style.height = '6em';
+ document.getElementById('showall').style.display='inline';
+ document.getElementById('showsome').style.display='none';
+ return false;" >[<&|/l&>Collapse</&>]</a></span>
%}
% if ($whiteboard->id) {
<div id="whiteboardinner" style="overflow: hidden; height: 6em;">
Modified: RT-TicketWhiteboard/lib/RT/TicketWhiteboard.pm
==============================================================================
--- RT-TicketWhiteboard/lib/RT/TicketWhiteboard.pm (original)
+++ RT-TicketWhiteboard/lib/RT/TicketWhiteboard.pm Mon Jan 30 21:23:12 2006
@@ -1,6 +1,6 @@
package RT::TicketWhiteboard;
-our $VERSION = '1.3';
+our $VERSION = '1.5';
1;
More information about the Rt-commit
mailing list