#2283 set text/plain for non-binary files in raw mode
This commit is contained in:
parent
85af36332b
commit
93f03707a7
5 changed files with 10 additions and 4 deletions
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue