[Trac-tickets] [The Trac Project] #1559: timeline should show the ticket summary instead of the ticket number

The Trac Project noreply at edgewall.com
Sun May 15 22:28:39 EDT 2005


#1559: timeline should show the ticket summary instead of the ticket number
----------------------+-----------------------------------------------------
       Id:  1559      |      Status:  new                     
Component:  timeline  |    Modified:  Sun May 15 22:28:39 2005
 Severity:  normal    |   Milestone:                          
 Priority:  normal    |     Version:  0.8.1                   
    Owner:  jonas     |    Reporter:  erik at scrafford.org      
----------------------+-----------------------------------------------------
 I find the timeline way more useful if it shows the ticket summary instead
 of the ticket number. It's a fairly straight forward change to
 templates/timeline.cs - here's my patch:

 --- timeline.cs_old     Sat May 14 00:07:06 2005
 +++ timeline.cs Sun May 15 18:57:44 2005
 @@ -65,7 +65,7 @@
      'Changeset <em>['+$item.idata+']</em> by
 '+$item.author,$item.node_list+item.message) ?>
   <?cs elif:item.type == #2 ?><!-- New ticket -->
    <?cs call:tlitem(item.href, 'newticket',
 -    'Ticket <em>#'+$item.idata+'</em> created by '+$item.author,
 item.message) ?>
 +    'Ticket <em>'+$item.shortmsg+'</em> created by '+$item.author,
 item.message) ?>
   <?cs elif:item.type == #3 ?><!-- Closed ticket -->
    <?cs if:item.message ?>
     <?cs set:imessage = ' - ' + $item.message ?>
 @@ -73,11 +73,11 @@
     <?cs set:imessage = '' ?>
    <?cs /if ?>
    <?cs call:tlitem(item.href, 'closedticket',
 -    'Ticket <em>#'+$item.idata+'</em> resolved by '+$item.author,
 +    'Ticket <em>#'+$item.shortmsg+'</em> resolved by '+$item.author,
      $item.tdata+$imessage) ?>
   <?cs elif:item.type == #4 ?><!-- Reopened ticket -->
    <?cs call:tlitem(item.href, 'newticket',
 -    'Ticket <em>#'+$item.idata+'</em> reopened by '+$item.author, '') ?>
 +    'Ticket <em>#'+$item.shortmsg+'</em> reopened by '+$item.author, '')
 ?>
   <?cs elif:item.type == #5 ?><!-- Wiki change -->
    <?cs call:tlitem(item.href, 'wiki',
      '<em>'+$item.tdata+'</em> edited by '+$item.author, item.message) ?>

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/1559>
The Trac Project <>


More information about the Trac-Tickets mailing list