mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-12-11 22:11:58 +01:00
15 lines
494 B
Go HTML Template
15 lines
494 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/{{if not $.IsIndexer}}branch{{else}}commit{{end}}/{{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>
|