aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2019-10-03 16:54:33 +0000
committerAntoine GIRARD <sapk@users.noreply.github.com>2019-10-03 18:54:33 +0200
commit9543aeaf84cae7ce3700133ff048536471c543aa (patch)
tree6fd50c19a53557975b9038b0bccd40eed9ca2d22 /templates
parent0bda87616182ba8c43c48be9a9db10be54d8aecc (diff)
downloadgitea-9543aeaf84cae7ce3700133ff048536471c543aa.tar.gz
gitea-9543aeaf84cae7ce3700133ff048536471c543aa.zip
readd .markdown class to all markup renderers (#8357)
fixes #8299, a regression from 867f46f. unlike it's name suggests, the .markdown class is needed for most markup types. a future refactor should rename this class to something more generic
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/view_file.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index 895a72aaee..50e4c33946 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -45,7 +45,7 @@
</div>
</h4>
<div class="ui attached table unstackable segment">
- <div class="file-view {{if .IsMarkup}}{{.MarkupType}}{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji">
+ <div class="file-view {{if .IsMarkup}}{{.MarkupType}} markdown{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji">
{{if .IsMarkup}}
{{if .FileContent}}{{.FileContent | Safe}}{{end}}
{{else if .IsRenderedHTML}}