summaryrefslogtreecommitdiffstats
path: root/templates/repo/view_file.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-25 05:45:07 -0500
committerUnknwon <u@gogs.io>2015-12-25 05:45:07 -0500
commit93f03707a789a4d538c945c9838fa4ec4d3ef15c (patch)
treecdffa6724be6466da634e69abc03ab105e6f7ae1 /templates/repo/view_file.tmpl
parent85af36332b89a42152c7e2b76af5e2aeb048103a (diff)
downloadgitea-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.tmpl2
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}}