diff -ru /home/res/source/trac-0.11rc1/trac/versioncontrol/web_ui/browser.py ./trac/versioncontrol/web_ui/browser.py
|
old
|
new
|
|
| 370 | 370 | return 'dir_entries.html', data, None |
| 371 | 371 | |
| 372 | 372 | # Links for contextual navigation |
| | 373 | prev_rev = repos.previous_rev (rev=rev_or_latest, path=node.created_path) |
| | 374 | if prev_rev: |
| | 375 | add_ctxtnav(req, tag.a(_('Previous Revision'), |
| | 376 | href=req.href.browser(node.created_path, |
| | 377 | rev=prev_rev))) |
| 373 | 378 | add_ctxtnav(req, tag.a(_('Last Change'), |
| 374 | 379 | href=req.href.changeset(node.rev, node.created_path))) |
| 375 | 380 | if node.isfile: |
| … |
… |
|
| 388 | 393 | annotate='blame')) |
| 389 | 394 | add_ctxtnav(req, _('Revision Log'), |
| 390 | 395 | href=req.href.log(path, rev=rev)) |
| | 396 | if rev: |
| | 397 | next_rev = repos.next_rev (rev=rev_or_latest, path=node.created_path) |
| | 398 | add_ctxtnav(req, tag.a(_('Next Revision'), |
| | 399 | href=req.href.browser(node.created_path, |
| | 400 | rev=next_rev))) |
| 391 | 401 | |
| 392 | 402 | add_stylesheet(req, 'common/css/browser.css') |
| 393 | 403 | return 'browser.html', data, None |