From 93f03707a789a4d538c945c9838fa4ec4d3ef15c Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 25 Dec 2015 05:45:07 -0500 Subject: #2283 set text/plain for non-binary files in raw mode --- templates/repo/view_file.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/repo/view_file.tmpl') diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 44d74f9c9b..44fc44913e 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -28,7 +28,7 @@ {{if .ReadmeExist}} {{if .FileContent}}{{.FileContent | Str2html}}{{end}} {{else if not .IsFileText}} -
+
{{if .IsImageFile}} {{else}} -- cgit v1.2.3