Changed the order of the files diffed in the draft diff links on the history page. Fixes issue #1114.

- Legacy-Id: 6077
This commit is contained in:
Henrik Levkowetz 2013-08-28 10:36:32 +00:00
parent ed020c8b8e
commit 37e69a02c6

View file

@ -180,7 +180,7 @@ def add_links_in_new_revision_events(doc, events, diff_revisions):
links += ""
if prev != None:
links += ' (<a href="http:%s?url1=%s&url2=%s">diff from previous</a>)' % (settings.RFCDIFF_PREFIX, urllib.quote(diff_url, safe="~"), urllib.quote(prev, safe="~"))
links += ' (<a href="http:%s?url1=%s&url2=%s">diff from previous</a>)' % (settings.RFCDIFF_PREFIX, urllib.quote(prev, safe="~"), urllib.quote(diff_url, safe="~"))
# replace the bold filename part
e.desc = re.sub(r"<b>(.+-[0-9][0-9].txt)</b>", links, e.desc)