aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/Updated_bug_tracking_example.mdwn
diff options
context:
space:
mode:
authorhttp://www.cse.unsw.edu.au/~willu/ <http://www.cse.unsw.edu.au/~willu/@web>2008-09-19 22:35:44 -0400
committerJoey Hess <joey@kitenet.net>2008-09-19 22:35:44 -0400
commitd0e7cc409b04c05dee3cbb7c26fb02c8a57eb27d (patch)
treee2c0f27c99f369b2629eb6011808baa59a391bdd /doc/todo/Updated_bug_tracking_example.mdwn
parentc9d4540117199c441501f296f988f0f9e7eb081d (diff)
downloadikiwiki-d0e7cc409b04c05dee3cbb7c26fb02c8a57eb27d.tar
ikiwiki-d0e7cc409b04c05dee3cbb7c26fb02c8a57eb27d.tar.gz
Update to use edittemplate rather than patch. Add justification.
Diffstat (limited to 'doc/todo/Updated_bug_tracking_example.mdwn')
-rw-r--r--doc/todo/Updated_bug_tracking_example.mdwn18
1 files changed, 15 insertions, 3 deletions
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"]]