2024-05-20 12:23:27 +00:00
|
|
|
{{if .Results}}
|
2024-08-09 16:14:19 +00:00
|
|
|
{{range .Results}}
|
2024-09-07 19:59:15 +00:00
|
|
|
<a class="item tw-max-w-[80vw]" href="{{$.RepoLink}}/wiki/{{.Filename}}">
|
|
|
|
<b class="tw-block tw-mb-2 tw-whitespace-break-spaces">{{.Filename}}</b>
|
2024-08-09 16:14:19 +00:00
|
|
|
{{range .LineCodes}}
|
2024-09-07 19:59:15 +00:00
|
|
|
<p class="tw-my-0 tw-whitespace-break-spaces">{{.}}</p>
|
2024-08-09 16:14:19 +00:00
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
2024-05-20 12:23:27 +00:00
|
|
|
{{else}}
|
2024-08-09 16:14:19 +00:00
|
|
|
<div class="item muted">{{ctx.Locale.Tr "repo.wiki.no_search_results"}}</div>
|
2024-05-20 12:23:27 +00:00
|
|
|
{{end}}
|