Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(104)

Unified Diff: codereview/views.py

Issue 12680047: Add SVN Annotate and Revision Log links in diff view
Patch Set: fix extra space after link Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | templates/diff.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: codereview/views.py
===================================================================
--- a/codereview/views.py
+++ b/codereview/views.py
@@ -2862,6 +2862,9 @@
return HttpTextResponse(str(err), status=404)
_add_next_prev(patchset, patch)
+ src_url = _map_base_url(request.issue.base)
+ if src_url and not src_url.endswith('/'):
+ src_url = src_url + '/';
return respond(request, 'diff.html',
{'issue': request.issue,
'patchset': patchset,
@@ -2872,6 +2875,7 @@
'context_values': models.CONTEXT_CHOICES,
'column_width': column_width,
'patchsets': patchsets,
+ 'src_url': src_url,
})
« no previous file with comments | « no previous file | templates/diff.html » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b