#3263: Timeline should show link to diff of wiki page changes
----------------------------+-----------------------------------------------
Reporter: Simon Willison | Owner: jonas
Type: enhancement | Status: reopened
Priority: normal | Milestone: 0.10
Component: timeline | Version: 0.9.5
Severity: minor | Resolution:
Keywords: review |
----------------------------+-----------------------------------------------
Comment (by cmlenz):
I don't like the direct use of the `Fragment` class in that patch.
Wouldn't something like the following work (not tested):
{{{
#!python
if version > 1:
diff_link = html.A('diff', href=href.wiki(
name, action='diff', version=version,
old_version=version-1))
comment = Markup('%s (%s)', comment, diff_link)
}}}
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/3263>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets