[Bps-public-commit] SD branch, master, updated. 3da972c883440fa6d9518a24e18de466271035dd

jesse jesse at bestpractical.com
Fri Apr 17 08:48:50 EDT 2009


The branch, master has been updated
       via  3da972c883440fa6d9518a24e18de466271035dd (commit)
      from  160a02568cfb720128010424ffbeb6d96558f38a (commit)

Summary of changes:
 lib/App/SD/Model/Ticket.pm |   34 ----------------------------------
 1 files changed, 0 insertions(+), 34 deletions(-)

- Log -----------------------------------------------------------------
commit 3da972c883440fa6d9518a24e18de466271035dd
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Fri Apr 17 20:48:31 2009 +0800

    Disable coloring of ticket display for now

diff --git a/lib/App/SD/Model/Ticket.pm b/lib/App/SD/Model/Ticket.pm
index 5063c2d..e9bebcc 100644
--- a/lib/App/SD/Model/Ticket.pm
+++ b/lib/App/SD/Model/Ticket.pm
@@ -145,40 +145,6 @@ sub _recommended_values_for_prop_component {
    return @{ shift->app_handle->setting( label => 'components' )->get() };
 }
 
-=head2 color_prop_status $value
-
-Returns the stats prop value C<$value> wrapped in colorization escape
-codes (from L<Term::ANSIColor>).
-
-=cut
-
-sub color_prop_status {
-    my ($self, $value) = @_;
-
-    # these colors were picked out of a hat
-    my $color = $value eq 'new'     ? 'red'
-              : $value eq 'open'    ? 'yellow'
-              : $value eq 'closed'  ? 'green'
-              : $value eq 'stalled' ? 'blue'
-                                    : '';
-
-    return colored($value, $color);
-}
-
-=head2 color_prop_due $due
-
-Returns the due prop value C<$due> wrapped in colorization escape
-codes if it is overdue.
-
-=cut
-
-sub color_prop_due {
-    my ($self, $due) = @_;
-
-    return colored($due, 'red') if $self->is_overdue($due);
-    return $due;
-}
-
 =head2 props_to_show { 'verbose' => 1, update => 0 }
 
 A list of which properties to display for the C<show> command (in order

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list