diff --git a/templates/repo/unicode_escape_prompt.tmpl b/templates/repo/unicode_escape_prompt.tmpl index d45df012e1593..855d7866a3597 100644 --- a/templates/repo/unicode_escape_prompt.tmpl +++ b/templates/repo/unicode_escape_prompt.tmpl @@ -1,17 +1,19 @@ -{{if .EscapeStatus.BadBIDI}} -
- {{svg "octicon-x" 16 "close inside"}} -
- {{$.root.i18n.Tr "repo.bidi_bad_header"}} -
-

{{$.root.i18n.Tr "repo.bidi_bad_description" | Str2html}}

-
-{{else if .EscapeStatus.Escaped}} -
- {{svg "octicon-x" 16 "close inside"}} -
- {{$.root.i18n.Tr "repo.unicode_header"}} -
-

{{$.root.i18n.Tr "repo.unicode_description" | Str2html}}

-
+{{if .EscapeStatus}} + {{if .EscapeStatus.BadBIDI}} +
+ {{svg "octicon-x" 16 "close inside"}} +
+ {{$.root.i18n.Tr "repo.bidi_bad_header"}} +
+

{{$.root.i18n.Tr "repo.bidi_bad_description" | Str2html}}

+
+ {{else if .EscapeStatus.Escaped}} +
+ {{svg "octicon-x" 16 "close inside"}} +
+ {{$.root.i18n.Tr "repo.unicode_header"}} +
+

{{$.root.i18n.Tr "repo.unicode_description" | Str2html}}

+
+ {{end}} {{end}}