summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-09-21 13:20:14 +0800
committerGitHub <noreply@github.com>2017-09-21 13:20:14 +0800
commit0d80af649a50c4b9e5e4ba764399872fc92f70f2 (patch)
treef09f289260005bc6913119643230c08c81dfab49 /templates
parent66bc0ac251f564491ed0a6d5d4cfa0a11af09303 (diff)
downloadgitea-0d80af649a50c4b9e5e4ba764399872fc92f70f2.tar.gz
gitea-0d80af649a50c4b9e5e4ba764399872fc92f70f2.zip
Add init support of orgmode document type on file view and readme (#2525)
* add init support of orgmode document type on file view and readme * fix imports * fix imports and readmeExist * fix imports order * fix format * remove unnecessary convert
Diffstat (limited to 'templates')
-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 36fccb00b3..898b9b5557 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 .IsMarkdown}}markdown{{else if .IsTextFile}}code-view{{end}} has-emoji">
- {{if .IsMarkdown}}
+ <div class="file-view {{if .IsMarkup}}markdown{{else if .IsTextFile}}code-view{{end}} has-emoji">
+ {{if .IsMarkup}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsTextFile}}
<div class="view-raw ui center">