1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00
forgejo/templates/repo/unicode_escape_prompt.tmpl

23 lines
964 B
Handlebars
Raw Normal View History

{{if .EscapeStatus}}
{{if .EscapeStatus.HasInvisible}}
<div class="ui warning message unicode-escape-prompt gt-text-left">
<button class="close icon hide-panel button" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</button>
<div class="header">
2023-09-24 16:31:58 -04:00
{{ctx.Locale.Tr "repo.invisible_runes_header"}}
</div>
2023-09-24 16:31:58 -04:00
<p>{{ctx.Locale.Tr "repo.invisible_runes_description" | Str2html}}</p>
{{if .EscapeStatus.HasAmbiguous}}
2023-09-24 16:31:58 -04:00
<p>{{ctx.Locale.Tr "repo.ambiguous_runes_description" | Str2html}}</p>
{{end}}
</div>
{{else if .EscapeStatus.HasAmbiguous}}
<div class="ui warning message unicode-escape-prompt gt-text-left">
<button class="close icon hide-panel button" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</button>
<div class="header">
2023-09-24 16:31:58 -04:00
{{ctx.Locale.Tr "repo.ambiguous_runes_header"}}
</div>
2023-09-24 16:31:58 -04:00
<p>{{ctx.Locale.Tr "repo.ambiguous_runes_description" | Str2html}}</p>
</div>
{{end}}
{{end}}