mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-15 22:38:31 +01:00
15c035775a
* Add main aria landmark to templates * Adjust some titles to improve understanding of location in navigation Contributed by @Forgejo
25 lines
766 B
Handlebars
25 lines
766 B
Handlebars
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository code-search">
|
|
{{template "user/overview/header" .}}
|
|
<div class="ui container">
|
|
{{template "code/searchform" .}}
|
|
<div class="ui divider"></div>
|
|
<div class="ui user list">
|
|
{{if .CodeIndexerUnavailable}}
|
|
<div class="ui error message">
|
|
<p>{{$.locale.Tr "explore.code_search_unavailable"}}</p>
|
|
</div>
|
|
{{else if .SearchResults}}
|
|
<h3>
|
|
{{.locale.Tr "explore.code_search_results" (.Keyword|Escape) | Str2html}}
|
|
</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" .}}
|