2022-10-11 01:12:03 +02:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 23:56:10 +01:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository code-search">
|
2022-10-11 01:12:03 +02:00
|
|
|
{{template "user/overview/header" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
{{template "code/searchform" .}}
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2022-10-11 01:12:03 +02:00
|
|
|
<div class="ui user list">
|
2022-10-14 03:33:54 +02:00
|
|
|
{{if .CodeIndexerUnavailable}}
|
2022-10-11 01:12:03 +02:00
|
|
|
<div class="ui error message">
|
|
|
|
<p>{{$.locale.Tr "explore.code_search_unavailable"}}</p>
|
|
|
|
</div>
|
|
|
|
{{else if .SearchResults}}
|
|
|
|
<h3>
|
2022-10-14 03:33:54 +02:00
|
|
|
{{.locale.Tr "explore.code_search_results" (.Keyword|Escape) | Str2html}}
|
2022-10-11 01:12:03 +02:00
|
|
|
</h3>
|
|
|
|
{{template "code/searchresults" .}}
|
|
|
|
{{else if .Keyword}}
|
|
|
|
<div>{{$.locale.Tr "explore.code_no_results"}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{template "base/paginate" .}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|