[Bps-public-commit] r10765 - in Net-Hiveminder: lib/Net

sartak at bestpractical.com sartak at bestpractical.com
Thu Feb 7 20:07:11 EST 2008


Author: sartak
Date: Thu Feb  7 20:06:29 2008
New Revision: 10765

Modified:
   Net-Hiveminder/   (props changed)
   Net-Hiveminder/Changes
   Net-Hiveminder/lib/Net/Hiveminder.pm

Log:
 r51667 at onn:  sartak | 2008-02-07 20:05:27 -0500
 Add * to completed tasks in display_tasks


Modified: Net-Hiveminder/Changes
==============================================================================
--- Net-Hiveminder/Changes	(original)
+++ Net-Hiveminder/Changes	Thu Feb  7 20:06:29 2008
@@ -5,6 +5,7 @@
         Fix undef warning in download_text
         Move scripts to hm-* and install them automatically
         Fix comments_on to give all comments, not an arbitrary one
+        Add * to completed tasks in display_tasks
 
 0.03    Mon Jan 21 08 01:50:38
         Rename tasks2ids to loc2id

Modified: Net-Hiveminder/lib/Net/Hiveminder.pm
==============================================================================
--- Net-Hiveminder/lib/Net/Hiveminder.pm	(original)
+++ Net-Hiveminder/lib/Net/Hiveminder.pm	Thu Feb  7 20:06:29 2008
@@ -94,15 +94,20 @@
     for my $task (@_) {
         my $locator = $self->id2loc($task->{id});
         my $display;
+
+        if ($task->{complete}) {
+            $display .= '* ';
+        }
+
         if ($args{linkify_locator}) {
-            $display = sprintf '<a href="%s/task/%s">#%s</a>: %s',
+            $display .= sprintf '<a href="%s/task/%s">#%s</a>: %s',
                 $self->site,
                 $locator,
                 $locator,
                 $task->{summary};
         }
         else {
-            $display = "#$locator: $task->{summary}";
+            $display .= "#$locator: $task->{summary}";
         }
 
         # don't display start date if it's <= today



More information about the Bps-public-commit mailing list