summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-08-25 20:38:41 +0200
committerGitHub <noreply@github.com>2022-08-25 20:38:41 +0200
commit27ac65a124f34ec3ed5f34aeb576f918ae1c70b1 (patch)
tree2c31f4d30e5bfce87056c397fcdae6c6e86c5788 /templates
parentdc0253b0637bbf367ad330612900e780c6b2b0e6 (diff)
downloadgitea-27ac65a124f34ec3ed5f34aeb576f918ae1c70b1.tar.gz
gitea-27ac65a124f34ec3ed5f34aeb576f918ae1c70b1.zip
Only show relevant repositories on explore page (#19361)
Adds a new option to only show relevant repo's on the explore page, for bigger Gitea instances like Codeberg this is a nice option to enable to make the explore page more populated with unique and "high" quality repo's. A note is shown that the results are filtered and have the possibility to see the unfiltered results. Co-authored-by: vednoc <vednoc@protonmail.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'templates')
-rw-r--r--templates/explore/repo_search.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/explore/repo_search.tmpl b/templates/explore/repo_search.tmpl
index e1df2fa0ee..1dabfede8c 100644
--- a/templates/explore/repo_search.tmpl
+++ b/templates/explore/repo_search.tmpl
@@ -29,4 +29,9 @@
<button class="ui primary button">{{.locale.Tr "explore.search"}}</button>
</div>
</form>
+{{if .OnlyShowRelevant}}
+ <div class="ui blue attached message explore-relevancy-note">
+ <span class="ui tooltip" data-content="{{.locale.Tr "explore.relevant_repositories_tooltip"}}">{{.locale.Tr "explore.relevant_repositories" ((printf "%s%s" $.Link "?no_filter=1")|Escape) | Safe}}</span>
+ </div>
+{{end}}
<div class="ui divider"></div>