Browse Source

repo: use BranchLink instead of TreeLink (#4366)

pull/4551/head
Unknwon 8 years ago
parent
commit
455dc072ba
No known key found for this signature in database
GPG Key ID: 7A02C406FAC875A2
  1. 2
      templates/repo/view_file.tmpl

2
templates/repo/view_file.tmpl

@ -53,7 +53,7 @@
// Overwrite image method to append proper prefix to the source URL
var renderer = new marked.Renderer();
var context = '{{.TreeLink}}'.replace('/src/', '/raw/');
var context = '{{.BranchLink}}'.replace('/src/', '/raw/');
renderer.image = function (href, title, text) {
return `<img src="${context}/${href}"`
}

Loading…
Cancel
Save