1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-10 20:24:24 +00:00

remove duplicated sanitize (#3037)

This commit is contained in:
Lunny Xiao 2017-12-01 03:38:33 +08:00 committed by Lauris BH
parent 13e59c8b7a
commit 9a8805d785

View File

@ -38,7 +38,7 @@
<div class="ui attached table segment"> <div class="ui attached table segment">
<div class="file-view {{if .IsMarkup}}markdown{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji"> <div class="file-view {{if .IsMarkup}}markdown{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji">
{{if .IsMarkup}} {{if .IsMarkup}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}} {{if .FileContent}}{{.FileContent | Safe}}{{end}}
{{else if .IsRenderedHTML}} {{else if .IsRenderedHTML}}
<pre>{{if .FileContent}}{{.FileContent | Str2html}}{{end}}</pre> <pre>{{if .FileContent}}{{.FileContent | Str2html}}{{end}}</pre>
{{else if not .IsTextFile}} {{else if not .IsTextFile}}