X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/2ad0296611d366ad5e5801381aa8cb6b41688ec2..3a04e96389def78bcb873a4487b85f4d75653199:/doc/todo/Updated_bug_tracking_example.mdwn?ds=sidebyside diff --git a/doc/todo/Updated_bug_tracking_example.mdwn b/doc/todo/Updated_bug_tracking_example.mdwn index da515070b..4fbb06497 100644 --- a/doc/todo/Updated_bug_tracking_example.mdwn +++ b/doc/todo/Updated_bug_tracking_example.mdwn @@ -1,6 +1,6 @@ I've put together an updated bug tracking example. This example requires some recent patches of mine. It requires [[todo/tracking_bugs_with_dependencies]], -[[todo/Default_text_for_new_pages]] and the second [[patch]] in +[[todo/Allow_edittemplate_to_set_file_type]] and the second [[patch]] in [[todo/structured_page_data]] (the data plugin, not the form plugin). You'll then want to add/replace the following files in the software project example. The @@ -9,6 +9,16 @@ have nice CSS for this yet. I did make sure that if I borrowed [Trac's](http://trac.edgewall.org/) css then it would display as nicely as theirs - the html is there if not the CSS. +It might be worth adding some justification of what is going on here. The datatable +and data directives generate a nice tabular form for the structured data. The HTML +generated is the same as for Trac, except I've got fewer fields. Adding more is trivial. + +I use data directives rather than links because the data directive allows separating +dependencies from links. We can specify 'bugs with all dependencies closed' without +being confused by other links on the page. + +-- [[Will]] + ### templates/bug.mdwn \[[!datatable class="bugtable" datalist=""" @@ -32,8 +42,10 @@ html is there if not the CSS. This is FooBar's bug list. Link bugs to \[[bugs/done]] when done. - \[[!inline pages="bugs and ! bugs" feeds=no postformtext="Report a bug:" - postform=yes rootpage="./blog" newposttemplate="templates/bug.mdwn"]] + \[[!inline pages="bugs and ! bugs" feeds=no postform=yes + postformtext="Report a bug:" rootpage="bugs"]] + + \[[!edittemplate template="templates/bug" match="bugs/* and !*/Discussion" silent=yes]] \[[!toggle id="all bugs" text="Show all bugs"]]