[Trac-tickets] [The Trac Project] #3293: Add "No Tickets" Result to TicketQuery macro

The Trac Project noreply at edgewall.com
Tue Jun 20 10:26:41 CDT 2006


#3293: Add "No Tickets" Result to TicketQuery macro
---------------------------+------------------------------------------------
 Reporter:  brian          |       Owner:  jonas    
     Type:  enhancement    |      Status:  new      
 Priority:  normal         |   Milestone:  0.10     
Component:  ticket system  |     Version:  0.9.5    
 Severity:  minor          |    Keywords:  TracQuery
---------------------------+------------------------------------------------
 I think the TicketQuery macro should display "No results" or "No tickets"
 or something to indicate the query worked, but that there are no tickets.

 For instance, I have some pages the describe the modules of the program.
 Each page lists the open tickets for that module (yes, I know this is
 available elsewhere, but sometimes it is helpful to have in the wiki too)
 The heading says "Open Tickets" and if there aren't any, it just has
 whitespace under it.  This hints that there are no open tickets, but it
 isn't concrete.

 I modified query.py to write "No open tickets" so it would be clear.

 This isn't the best way, because not all TicketQuery usage will be looking
 for open tickets.  It would be nice to have a parameter of the TicketQuery
 macro be "message if none found".  So you could write:

 {{{
 [[TicketQuery(status=new,"No new tickets")]]
 }}}

 This would list all the new tickets, or if there aren't any, it would
 display "No new tickets"

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


More information about the Trac-Tickets mailing list