[Trac-tickets] [The Trac Project] #1546: Show resolution in ticket header when it is defined

The Trac Project noreply at edgewall.com
Fri May 13 09:15:47 EDT 2005


#1546: Show resolution in ticket header when it is defined
---------------------------+------------------------------------------------
       Id:  1546           |      Status:  new                     
Component:  ticket system  |    Modified:  Fri May 13 09:15:47 2005
 Severity:  trivial        |   Milestone:  0.9                     
 Priority:  normal         |     Version:  0.8                     
    Owner:  jonas          |    Reporter:  pkou at ua.fm           
---------------------------+------------------------------------------------
 When ticket header is rendered, then resolution is specified for closed
 tickets only.

 Taking into account multiple statuses that can exist, the resolution
 should be displayed when it is defined regardless of current ticket
 status.

 Patch for trunk:
 {{{
 Index: ticket.cs
 ===================================================================
 --- ticket.cs   (revision 1667)
 +++ ticket.cs   (working copy)
 @@ -29,7 +29,7 @@
  <div id="content" class="ticket">

   <h1>Ticket #<?cs var:ticket.id ?> <?cs
 - if:ticket.status == 'closed' ?>(Closed: <?cs var:ticket.resolution
 ?>)<?cs
 + if:ticket.resolution ?>(<?cs var:ticket.status ?>: <?cs
 var:ticket.resolution ?>)<?cs
   elif:ticket.status != 'new' ?>(<?cs var:ticket.status ?>)<?cs
   /if ?></h1>
 }}}

 Also, it makes consistent status displaying (always in lower case).

 ''(In preparation to #869)''

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


More information about the Trac-Tickets mailing list