From c8b45ecc2762a9d64dbe83cafd68b137661448a5 Mon Sep 17 00:00:00 2001 From: Rory McNamara Date: Tue, 9 Aug 2016 20:35:20 +0100 Subject: Render the Code view on the server (minus syntax highlighting) (#2942) * render code view server side * remove debug print * fix multiline selection bug * change string concatenation to bytes.Buffer for efficiency * Fix newlines added by previous for hljs * fix selection highlighting * make css changes in .less --- templates/repo/view_file.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/repo') diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index cd0caf10f9..0f42df4925 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -44,7 +44,7 @@ {{if .IsFileTooLarge}} {{.i18n.Tr "repo.file_too_large"}} {{else}} - + {{.LineNums}}
    {{.FileContent}}
{{end}} -- cgit v1.2.3