diff options
author | Unknwon <u@gogs.io> | 2015-12-25 05:45:07 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-25 05:45:07 -0500 |
commit | 93f03707a789a4d538c945c9838fa4ec4d3ef15c (patch) | |
tree | cdffa6724be6466da634e69abc03ab105e6f7ae1 /templates/repo/view_file.tmpl | |
parent | 85af36332b89a42152c7e2b76af5e2aeb048103a (diff) | |
download | gitea-93f03707a789a4d538c945c9838fa4ec4d3ef15c.tar.gz gitea-93f03707a789a4d538c945c9838fa4ec4d3ef15c.zip |
#2283 set text/plain for non-binary files in raw mode
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r-- | templates/repo/view_file.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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}} - <div class="view-raw"> + <div class="view-raw ui center"> {{if .IsImageFile}} <img src="{{EscapePound .FileLink}}"> {{else}} |