2024-05-20 15:23:27 +03:00
|
|
|
{{if .Results}}
|
2024-08-09 19:14:19 +03:00
|
|
|
{{range .Results}}
|
2024-09-07 22:59:15 +03: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 19:14:19 +03:00
|
|
|
{{range .LineCodes}}
|
2024-09-07 22:59:15 +03:00
|
|
|
<p class="tw-my-0 tw-whitespace-break-spaces">{{.}}</p>
|
2024-08-09 19:14:19 +03:00
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
2024-05-20 15:23:27 +03:00
|
|
|
{{else}}
|
2024-08-09 19:14:19 +03:00
|
|
|
<div class="item muted">{{ctx.Locale.Tr "repo.wiki.no_search_results"}}</div>
|
2024-05-20 15:23:27 +03:00
|
|
|
{{end}}
|