[Rt-commit] r2210 - in RT-View-Tree: . html/Search lib/RT/View
jesse at bestpractical.com
jesse at bestpractical.com
Thu Feb 10 13:56:25 EST 2005
Author: jesse
Date: Thu Feb 10 13:56:24 2005
New Revision: 2210
Modified:
RT-View-Tree/ (props changed)
RT-View-Tree/META.yml
RT-View-Tree/html/Search/Tree.html
RT-View-Tree/lib/RT/View/Tree.pm
Log:
r2300 at hualien (orig r298): jesse | 2004-09-13T00:44:51.760809Z
r10239 at tinbook: jesse | 2004-09-13T00:44:38.470895Z
Terminology changes for the customer
Modified: RT-View-Tree/META.yml
==============================================================================
--- RT-View-Tree/META.yml (original)
+++ RT-View-Tree/META.yml Thu Feb 10 13:56:24 2005
@@ -1,5 +1,5 @@
name: RT-View-Tree
-version: 0.7
+version: 0.8
abstract: RT View-Tree Extension
license: unknown
distribution_type: module
Modified: RT-View-Tree/html/Search/Tree.html
==============================================================================
--- RT-View-Tree/html/Search/Tree.html (original)
+++ RT-View-Tree/html/Search/Tree.html Thu Feb 10 13:56:24 2005
@@ -1,4 +1,5 @@
<%ARGS>
+$TreeviewMagic => undef
$id => undef
$Query => undef
$Format => undef
@@ -7,8 +8,8 @@
$Order => undef
$Page => undef
$MaxDepth => 7
-$HideChildren => undef
-$HideDependencies => undef
+$ShowChildren => undef
+$ShowDependencies => undef
</%ARGS>
<%init>
@@ -26,8 +27,8 @@
Order => $Order,
Page => $Page,
MaxDepth => $MaxDepth,
- HideChildren => $HideChildren,
- HideDependencies => $HideDependencies
+ ShowChildren => $ShowChildren,
+ ShowDependencies => $ShowDependencies
);
# }}}
@@ -86,8 +87,8 @@
TopTickets => $TopTickets,
Depth => 1,
MaxDepth => $MaxDepth,
- HideChildren => $HideChildren,
- HideDependencies => $HideDependencies
+ ShowChildren => $ShowChildren,
+ ShowDependencies => $ShowDependencies
);
push @tree, [ $ticket, $kids ];
@@ -99,8 +100,8 @@
my %args = (
Ticket => undef,
TopTickets => undef,
- HideChildren => undef,
- HideDependencies => undef,
+ ShowChildren => undef,
+ ShowDependencies => undef,
Depth => undef,
MaxDepth => undef,
@_
@@ -117,8 +118,8 @@
my @tickets;
push @query, 'DependentOn = ' . $ticket->id
- unless ( $args{'HideDependencies'} );
- push @query, 'MemberOf = ' . $ticket->id unless ( $args{'HideChildren'} );
+ if ( $args{'ShowDependencies'} );
+ push @query, 'MemberOf = ' . $ticket->id if ( $args{'ShowChildren'} );
$deps->FromSQL( join( ' OR ', @query ) );
$deps->OrderBy( FIELD => $args{'OrderBy'}, ORDER => $args{'Order'} );
@@ -131,8 +132,8 @@
TopTickets => $TopTickets,
Depth => ( $args{'Depth'} + 1 ),
MaxDepth => $args{'MaxDepth'},
- HideChildren => $args{'HideChildren'},
- HideDependencies => $args{'HideDependencies'}
+ ShowChildren => $args{'ShowChildren'},
+ ShowDependencies => $args{'ShowDependencies'}
);
push @tickets, [ $dep, $kids ];
@@ -181,12 +182,17 @@
<input type="hidden" name="Format" value="<%$Format%>">
<& /Elements/TitleBoxStart, title => loc('Display options') &>
<ul>
-<li><&|/l&>Show this many levels:</&> <input type=text size=3 name="MaxDepth"
+<li><&|/l&>Display Depth</&>: <input type=text size=3 name="MaxDepth"
value=<%$MaxDepth%>>
-(<i><&|/l&>Leave this field blank to show everything</&></i>)
</li>
-<li><input type="checkbox" name="HideChildren" <%$HideChildren&& 'CHECKED'%>><&|/l&>Hide subtasks</&></li>
-<li><input type="checkbox" name="HideDependencies" <%$HideDependencies && 'CHECKED'%>><&|/l&>Hide dependencies</&></li>
+%# Checkboxes have binary logic. "Off" looks like "never existed
+%# TreeviewMagic emulates trinary logic for them
+<input type="hidden" name="TreeviewMagic" value="1">
+<li><input type="checkbox" name="ShowChildren" <%($ShowChildren ||
+!$TreeviewMagic) &&
+'CHECKED'%>><&|/l&>Show children in sublevels</&></li>
+<li><input type="checkbox" name="ShowDependencies" <%($ShowDependencies|| !$TreeviewMagic) &&
+'CHECKED'%>><&|/l&>Show dependencies in sublevels</&></li>
</ul>
<& /Elements/Submit &>
<& /Elements/TitleBoxEnd &>
Modified: RT-View-Tree/lib/RT/View/Tree.pm
==============================================================================
--- RT-View-Tree/lib/RT/View/Tree.pm (original)
+++ RT-View-Tree/lib/RT/View/Tree.pm Thu Feb 10 13:56:24 2005
@@ -1,6 +1,6 @@
package RT::View::Tree;
-our $VERSION = '0.8';
+our $VERSION = '0.9';
1;
More information about the Rt-commit
mailing list