summaryrefslogtreecommitdiffstats
path: root/templates/repo/unicode_escape_prompt.tmpl
blob: 8bceafa8bbca15be10987a3194cda05ebfeb2337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{if .EscapeStatus}}
	{{if .EscapeStatus.HasInvisible}}
		<div class="ui warning message unicode-escape-prompt tw-text-left">
			<button class="btn close icon hide-panel" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</button>
			<div class="header">
				{{ctx.Locale.Tr "repo.invisible_runes_header"}}
			</div>
			<p>{{ctx.Locale.Tr "repo.invisible_runes_description"}}</p>
			{{if .EscapeStatus.HasAmbiguous}}
				<p>{{ctx.Locale.Tr "repo.ambiguous_runes_description"}}</p>
			{{end}}
		</div>
	{{else if .EscapeStatus.HasAmbiguous}}
		<div class="ui warning message unicode-escape-prompt tw-text-left">
			<button class="btn close icon hide-panel" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</button>
			<div class="header">
				{{ctx.Locale.Tr "repo.ambiguous_runes_header"}}
			</div>
			<p>{{ctx.Locale.Tr "repo.ambiguous_runes_description"}}</p>
		</div>
	{{end}}
{{end}}