diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-10-16 15:04:34 +0800 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-10-16 09:04:34 +0200 |
commit | a75d5c72bb9d85b2344ee98b4425290423b6e6b2 (patch) | |
tree | c731ee2429a332d796756d19efa5569fa881c3a2 /templates/repo/view_file.tmpl | |
parent | c7f4f07765a96ac4b66f40167ed4207aa4e34dad (diff) | |
download | gitea-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.tmpl | 4 |
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"> |