mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 07:09:21 +01:00
1b8fd7b17b
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/3173 regression caused in porting #2813 🫣 see https://codeberg.org/forgejo/forgejo/pulls/2688#issuecomment-1692750 Co-authored-by: Shiny Nematoda <snematoda.751k2@aleeas.com> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3204 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
14 lines
451 B
Go HTML Template
14 lines
451 B
Go HTML Template
<div class="file-body file-code code-view">
|
|
<table>
|
|
<tbody>
|
|
{{range .SearchResult.Lines}}
|
|
<tr>
|
|
<td class="lines-num">
|
|
<a href="{{$.RepoLink}}/src/commit/{{PathEscape $.SearchResult.CommitID}}/{{PathEscapeSegments $.SearchResult.Filename}}#L{{.Num}}"><span>{{.Num}}</span></a>
|
|
</td>
|
|
<td class="lines-code chroma"><code class="code-inner">{{.FormattedContent}}</code></td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|