1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 18:58:38 +00:00

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
This commit is contained in:
Lunny Xiao
2017-10-16 15:04:34 +08:00
committed by Kim "BKC" Carlbäcker
parent c7f4f07765
commit a75d5c72bb
2 changed files with 9 additions and 14 deletions

View File

@@ -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">