From a75d5c72bb9d85b2344ee98b4425290423b6e6b2 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 16 Oct 2017 15:04:34 +0800 Subject: 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 --- templates/repo/view_file.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/repo/view_file.tmpl') 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}}
-
- {{if .IsMarkup}} +
+ {{if .IsRenderedHTML}} {{if .FileContent}}{{.FileContent | Str2html}}{{end}} {{else if not .IsTextFile}}
-- cgit v1.2.3