[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. 4d2ed3055faa4241e018f413b13705ca959e3ece

jesse jesse at bestpractical.com
Mon Jan 26 19:52:37 EST 2009


The branch, master has been updated
       via  4d2ed3055faa4241e018f413b13705ca959e3ece (commit)
      from  47df532668c107e909890e95b5b94532cd051747 (commit)

Summary of changes:
 lib/App/SD/Server/View.pm |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

- Log -----------------------------------------------------------------
commit 4d2ed3055faa4241e018f413b13705ca959e3ece
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Jan 26 19:52:25 2009 -0500

    relative dating in lists ftw.

diff --git a/lib/App/SD/Server/View.pm b/lib/App/SD/Server/View.pm
index a63ede9..951f03b 100644
--- a/lib/App/SD/Server/View.pm
+++ b/lib/App/SD/Server/View.pm
@@ -685,8 +685,8 @@ private template 'ticket_list' => sub {
 
     );
 
-#     outs_raw('$("td.created,td.due").prettyDateTag();
-# setInterval(function(){ $("td.created,td.due").prettyDateTag(); }, 5000);')
+     outs_raw('$("td.created,td.due").prettyDateTag();
+ setInterval(function(){ $("td.created,td.due").prettyDateTag(); }, 5000);')
  };
 
         
@@ -805,8 +805,7 @@ template ticket_history => sub {
     dl { { class is 'history'};
     for my $changeset  (sort {$a->created cmp $b->created}  $ticket->changesets) {
         dt {
-            my $d  = $changeset->created;
-                span { { class is 'created'};  $d};
+                span { { class is 'created'};  $changeset->created };
                 span { { class is 'creator'};  $changeset->creator || i { 'Missing author'};  };
                 span { { class is 'original_sequence_no'};  $changeset->original_sequence_no};
                 span { { class is 'original_source_uuid'}; $changeset->original_source_uuid };
@@ -836,9 +835,16 @@ template ticket_comments => sub {
         ul { { class is 'comments'}; 
             for my $comment (@comments) {
                 li {
-                    span { {class is 'metadata'};  span{class is 'created'; $comment->prop('created')} . " " . $comment->prop('creator'); }
-                    div { class is 'content'; 
-                        $comment->prop('content') || i { 'No body was entered for this comment'} };
+                    span {
+                        { class is 'metadata' };
+                        span { class is 'created'; $comment->prop('created') };
+                         outs(" ");
+                        span { class is 'creator';  $comment->prop('creator')};
+                    }
+                    div {
+                        class is 'content';
+                        $comment->prop('content') || i {'No body was entered for this comment'};
+                    };
                 }
             }
         }

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



More information about the Bps-public-commit mailing list