Преглед изворни кода

repo: use BranchLink instead of TreeLink (#4366)

Unknwon пре 7 година
родитељ
комит
455dc072ba
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      templates/repo/view_file.tmpl

+ 1 - 1
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}"`
 						}