aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/view_file.tmpl
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-10-16 15:04:34 +0800
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-10-16 09:04:34 +0200
commita75d5c72bb9d85b2344ee98b4425290423b6e6b2 (patch)
treec731ee2429a332d796756d19efa5569fa881c3a2 /templates/repo/view_file.tmpl
parentc7f4f07765a96ac4b66f40167ed4207aa4e34dad (diff)
downloadgitea-a75d5c72bb9d85b2344ee98b4425290423b6e6b2.tar.gz
gitea-a75d5c72bb9d85b2344ee98b4425290423b6e6b2.zip
Fix plain readme didn't render correctly on repo home page (#2705)
* fix plain readme didn't render correctly on repo home page * fix missing render * remove unused template variables
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r--templates/repo/view_file.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index 898b9b5557..c68da4fae5 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -36,8 +36,8 @@
{{end}}
</h4>
<div class="ui attached table segment">
- <div class="file-view {{if .IsMarkup}}markdown{{else if .IsTextFile}}code-view{{end}} has-emoji">
- {{if .IsMarkup}}
+ <div class="file-view {{if .IsRenderedHTML}}markdown{{else if .IsTextFile}}code-view{{end}} has-emoji">
+ {{if .IsRenderedHTML}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsTextFile}}
<div class="view-raw ui center">