mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
#2283 set text/plain for non-binary files in raw mode
This commit is contained in:
@@ -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}}
|
||||
|
Reference in New Issue
Block a user