Explorar el Código

repo: use BranchLink instead of TreeLink (#4366)

Unknwon hace 7 años
padre
commit
455dc072ba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}"`
 						}