diff options
author | Unknwon <u@gogs.io> | 2017-06-06 15:50:12 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-06-06 15:50:12 -0400 |
commit | 455dc072ba85c90c09e25867017216bacc506c8d (patch) | |
tree | de6d61fab47ba6b8d6ab08db4d0b60e58b165299 /templates/repo | |
parent | a851b77ac9e5d95f71fb0e98cd134cd0e692f782 (diff) |
repo: use BranchLink instead of TreeLink (#4366)
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/view_file.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index dea9493e..08f6d563 100644 --- a/templates/repo/view_file.tmpl +++ b/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}"` } |