From 6ebdf91b327313a0d258ee473b5da5314377e348 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 7 Apr 2017 22:33:19 -0400 Subject: templates/repo: fix README.ipynb not rendered (#4367) --- templates/repo/view_file.tmpl | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 92bd7139..b8d6c1e4 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -36,28 +36,29 @@ {{end}}
-
- {{if or .IsMarkdown .ReadmeInList}} +
+ {{if .IsMarkdown}} {{if .FileContent}}{{.FileContent | Str2html}}{{end}} {{else if .IsIPythonNotebook}} - {{if .FileContent}} - - {{end}} + }); + + {{else if .ReadmeInList}} + {{if .FileContent}}{{.FileContent | Str2html}}{{end}} {{else if not .IsTextFile}}
{{if .IsImageFile}} -- cgit v1.2.3