diff options
author | Shiny Nematoda <snematoda.751k2@aleeas.com> | 2024-03-20 13:22:43 +0100 |
---|---|---|
committer | Shiny Nematoda <snematoda.751k2@aleeas.com> | 2024-03-20 13:31:36 +0100 |
commit | 4a061ca26c9fc9f36822fa9e34fb9f0121af4e7c (patch) | |
tree | a389d99e20deeff685d3ce6176e054511e889262 /templates/shared/searchfile.tmpl | |
parent | fixes for port (diff) | |
download | forgejo-4a061ca26c9fc9f36822fa9e34fb9f0121af4e7c.tar.xz forgejo-4a061ca26c9fc9f36822fa9e34fb9f0121af4e7c.zip |
simplify template
Diffstat (limited to 'templates/shared/searchfile.tmpl')
-rw-r--r-- | templates/shared/searchfile.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shared/searchfile.tmpl b/templates/shared/searchfile.tmpl index 4c098138de..f2c1369555 100644 --- a/templates/shared/searchfile.tmpl +++ b/templates/shared/searchfile.tmpl @@ -4,7 +4,7 @@ {{range .SearchResult.Lines}} <tr> <td class="lines-num"> - <a href="{{$.RepoLink}}/src/{{if eq $.CodeIndexerEnabled false}}branch{{else}}commit{{end}}/{{PathEscape $.SearchResult.CommitID}}/{{PathEscapeSegments $.SearchResult.Filename}}#L{{.Num}}"><span>{{.Num}}</span></a> + <a href="{{$.RepoLink}}/src/{{if $.CodeIndexerDisabled}}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> |