changeset 3344:dba9666479a9

info action: add 'diff to previous' link
author Johannes Berg <johannes AT sipsolutions DOT net>
date Thu, 20 Mar 2008 14:26:29 +0100
parents 04548b25e042
children 41e04736a9f1
files MoinMoin/action/info.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/info.py	Thu Mar 20 14:09:17 2008 +0100
+++ b/MoinMoin/action/info.py	Thu Mar 20 14:26:29 2008 +0100
@@ -119,6 +119,8 @@
                 else:
                     lchecked = rchecked = ''
                 diff = '<input type="radio" name="rev1" value="%d"%s><input type="radio" name="rev2" value="%d"%s>' % (rev, lchecked, rev, rchecked)
+                if rev > 1:
+                    diff += render_action(' ' + _('to previous'), {'action': 'diff', 'rev1': rev-1, 'rev2': rev})
                 comment = line.comment
                 if not comment:
                     if '/REVERT' in line.action: