<div class="code-preview-container file-content">
	<div class="code-preview-header">
		<a href="{{.FullURL}}" class="tw-font-semibold" rel="nofollow">{{.RepoName}}/{{.FilePath}}</a>
		{{$link := HTMLFormat `<a href="%s/commit/%s" class="muted tw-font-mono tw-text-text" rel="nofollow">%s</a>` .RepoLink .CommitID (.CommitID | ShortSha) -}}
		{{- if eq .LineStart .LineStop -}}
			{{ctx.Locale.Tr "repo.code_preview_line_in" .LineStart $link}}
		{{- else -}}
			{{ctx.Locale.Tr "repo.code_preview_line_from_to" .LineStart .LineStop $link}}
		{{- end}}
	</div>
	<table class="file-view">
		<tbody>
			{{- range $idx, $line := .HighlightLines -}}
			<tr>
				<td class="lines-num"><span data-line-number="{{$line.Num}}"></span></td>
				{{- ctx.RenderUtils.RenderUnicodeEscapeToggleTd $.EscapeStatus (index $.LineEscapeStatus $idx)}}
				<td class="lines-code chroma"><div class="code-inner">{{$line.FormattedContent}}</div></td>{{/* only div works, span generates incorrect HTML structure */}}
			</tr>
			{{- end -}}
		</tbody>
	</table>
</div>
