Modify

Opened 9 years ago

Last modified 9 years ago

#40 new defect

TicketBox ticket titles

Reported by: ebrown@… Owned by: gotoh
Priority: normal Component: TicketBoxMacro
Severity: normal Keywords:
Cc: Trac Release:

Description

It would be awesome to be able to use TicketBox to show a list of tickets with their titles:

[[TicketBox(200px,tickettitles,'%d Open Tickets',[report:1])]]

would generate

 #1 Exception in Core::Authen...
#19 Usernames containing '%'...
#23 Error during install

You could structure it with <div>s such that the <div> containing the title was <div style="width:300px;white-space:nowrap;overflow:hidden"> to automatically keep it on 1 line.

Attachments (1)

TicketBox-withtext.diff (1.8 KB) - added by Gary Oberbrunner 9 years ago.
Patch to support optional ticket descriptions as well as text.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by athomas

  • Component changed from TracHacks to TicketBoxMacro
  • Owner changed from athomas to gotoh

Changed 9 years ago by Gary Oberbrunner

Patch to support optional ticket descriptions as well as text.

comment:2 Changed 9 years ago by Gary Oberbrunner

I've enclosed a patch against the 0.9 version of Oct. 7, 2005 that supports ticket descriptions. You use it by creating a report that outputs at least two fields: "ticket" which is the ID number, and "text" which is whatever you want the text to say (could come from ticket summary for instance). If the report has no "text" field, it behaves as it used to. If it does have "text", it creates a somewhat different format like this:

#40: do something
#41: fix widgets
#99: fronobulate the snozzwangler

I didn't do the <div> idea from the original ticket though, but it seems like a good idea.

comment:3 Changed 9 years ago by anonymous

Sorry that last example didn't come out right. Each ticket and its number were supposed to be on a separate line, like this:

#40: do something
#41: fix widgets
#99: fronobulate the snozzwangler

comment:4 Changed 9 years ago by athomas

  • milestone 0.9 deleted

Milestone 0.9 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.