#2283 set text/plain for non-binary files in raw mode

This commit is contained in:
Unknwon 2015-12-25 05:45:07 -05:00
parent 85af36332b
commit 93f03707a7
5 changed files with 10 additions and 4 deletions

View file

@ -28,7 +28,7 @@
{{if .ReadmeExist}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsFileText}}
<div class="view-raw">
<div class="view-raw ui center">
{{if .IsImageFile}}
<img src="{{EscapePound .FileLink}}">
{{else}}