| | 27 | |
| | 28 | |
| | 29 | == Trac Hacks: Ticket Box == |
| | 30 | Simple list of tickets by specifiying ticket numbers. '#' character can be omitted: |
| | 31 | {{{ |
| | 32 | [[TicketBox(#1,#7,#31)]] |
| | 33 | [[TicketBox(1,7,31)]] |
| | 34 | }}} |
| | 35 | results in: |
| | 36 | [[TicketBox(#1,#7,#31)]] |
| | 37 | [[TicketBox(1,7,31)]] |
| | 38 | |
| | 39 | List tickets expanded from the report result. Third example uses dynamic variable. The special variable 'USER' can be specified. If not specified, login name (or anonymous) is used: |
| | 40 | {{{ |
| | 41 | [[TicketBox({1})]] |
| | 42 | [[TicketBox([report:1])]] |
| | 43 | [[TicketBox([report:9?COMPONENT=TicketBox])]] |
| | 44 | [[TicketBox([report:9?USER=foo])]] |
| | 45 | }}} |
| | 46 | Combination of above is allowed. The tickets are listed as sorted and uniq'ed: |
| | 47 | {{{ |
| | 48 | [[TicketBox({1),#50,{2},100)]] |
| | 49 | }}} |
| | 50 | Specifying a size of the box: |
| | 51 | {{{ |
| | 52 | [[TicketBox(500pt,{1})]] |
| | 53 | [[TicketBox(200px,{1})]] |
| | 54 | [[TicketBox(25%,{1})]] |
| | 55 | }}} |
| | 56 | Specifying a title of the box. single and double quoted string are allowed. If '%d' in title string will be replaced with count of tickets: |
| | 57 | {{{ |
| | 58 | [[TicketBox('Related Tickets',#1,#2)]] |
| | 59 | [[TicketBox("Related Tickets",#1,#2)]] |
| | 60 | [[TicketBox("There are %d tickets",{1})]] |
| | 61 | }}} |