Changes between Version 15 and Version 16 of TicketBoxMacro
- Timestamp:
- Jul 30, 2008, 8:48:08 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TicketBoxMacro
v15 v16 1 1 = Ticket list in a box on the wiki page = 2 3 == News == 4 This macro is unified for several trac versions (0.9, 0.10, 0.11, 0.12dev) 5 since 2008-07-31 (r4088). 6 Note that repository structure is changed and the version directory 7 are no longer exist. 8 Get latest source from [http://trac-hacks.org/svn/ticketboxmacro/TicketBox.py here]. 2 9 3 10 == Description == 4 11 {{{ 5 12 #!html 6 <img src="http://trac-hacks.org/svn/ticketboxmacro/ 0.9/TicketBox-image.png"13 <img src="http://trac-hacks.org/svn/ticketboxmacro/TicketBox-image.png" 7 14 title="sample image" style="float:right"/> 8 15 }}} … … 25 32 26 33 * [source:ticketboxmacro Browse with Trac]. 27 * checkout with subversion : [/svn/ticketboxmacro/0.11 0.11] - [/svn/ticketboxmacro/0.10 0.10] - [/svn/ticketboxmacro/0.9 0.9]34 * checkout with subversion from [/svn/ticketboxmacro repository] (for any trac versions) 28 35 29 (2008/03/28 : [source:ticketboxmacro/0.8/#2848 TicketBoxMacro for 0.8] is obsoleted.) 36 [[BR]](2008/07/31 : Files for each trac versions are unified.) 37 [[BR]](2008/03/28 : [source:ticketboxmacro/0.8/#2848 TicketBoxMacro for 0.8] is obsoleted.) 30 38 31 39 == Install == … … 34 42 of your trac environment or system wide `wiki-macros` directory. 35 43 36 For trac 0.11 , copy `TicketBox.py` to `plugins` directory of your44 For trac 0.11 or later, copy `TicketBox.py` to `plugins` directory of your 37 45 trac environment (no need enable this plugin explicitly). 38 46 Or copy it to system wide `plugins` directory then enable the 39 47 `TicketBox` plugin via admin page. 40 48 41 == Example ==49 == Basic Usage == 42 50 43 51 These example shows the simple list of tickets by specifiying ticket numbers. … … 60 68 }}} 61 69 70 If field name of ticket id is not 'ticket' in report report definition, 71 You can specify by `ticket=xxx`: 72 {{{ 73 [[Ticketbox({20},ticket=id)]] 74 }}} 75 76 TracQuery style of query string can be used. 77 And it aslo can be used in report defintion (starting with `query:`), 78 {{{ 79 [[TicketBox([query:status=new])]] 80 }}} 81 62 82 The combination of above is allowed. 63 83 The tickets are listed as sorted and uniq'ed: 64 84 {{{ 65 [[TicketBox({1},#50,{2}, 100)]]85 [[TicketBox({1},#50,{2},[query:keywords~=important],100)]] 66 86 }}} 87 88 If `nosort` option is specified, tickets are listed without sorting: 89 {{{ 90 [[TicketBox(3,2,1,{1},nosort)]] 91 }}} 92 93 == Displaying == 67 94 68 95 You can specify the size of the box: … … 91 118 }}} 92 119 120 `nowrap` forces no wrap of line. It is usefull with summary option. 121 If this option is specified, line length may exceeds specified `width`. 122 {{{ 123 [[TicketBox({1},summary,nowrap)]] 124 }}} 125 126 Text color, background color, border line color and float position 127 can be specified: 128 {{{ 129 [[TicketBox({1},float=left,color=green,background=transparent,border-color=red)]] 130 }}} 131 93 132 94 133 == Author/Contributors == … … 97 136 '''Contributors:''' 98 137 99 [[TagIt(macro,gotoh,example,0.9,0.10,0.11 )]]138 [[TagIt(macro,gotoh,example,0.9,0.10,0.11,0.12)]] 100 139 [[ChangeLog(ticketboxmacro)]]