From 455dc072ba85c90c09e25867017216bacc506c8d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 6 Jun 2017 15:50:12 -0400 Subject: [PATCH] repo: use BranchLink instead of TreeLink (#4366) --- templates/repo/view_file.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index dea9493e4..08f6d5634 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 `