diff --git a/trac/versioncontrol/web_ui/browser.py b/trac/versioncontrol/web_ui/browser.py
|
a
|
b
|
|
| 367 | 367 | return 'dir_entries.html', data, None |
| 368 | 368 | |
| 369 | 369 | # Links for contextual navigation |
| | 370 | if node.isfile: |
| | 371 | prev_rev = repos.previous_rev(rev=node.rev, |
| | 372 | path=node.created_path) |
| | 373 | if prev_rev: |
| | 374 | href = req.href.browser(node.created_path, rev=prev_rev) |
| | 375 | add_ctxtnav(req, tag.span(Markup('← '), |
| | 376 | tag.a(_('Previous Revision'), |
| | 377 | href=href))) |
| | 378 | next_rev = repos.next_rev(rev=node.rev, |
| | 379 | path=node.created_path) |
| | 380 | if next_rev: |
| | 381 | href = req.href.browser(node.created_path, rev=next_rev) |
| | 382 | add_ctxtnav(req, tag.span(tag.a(_('Next Revision'), href=href), |
| | 383 | Markup(' →'))) |
| 370 | 384 | add_ctxtnav(req, tag.a(_('Last Change'), |
| 371 | 385 | href=req.href.changeset(node.rev, node.created_path))) |
| 372 | 386 | if node.isfile: |