forgejo/templates/explore
wxiaoguang d15f20b2d2
Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (#23766) (#23791)
Follow #21962

After I eat my own dogfood, I would say that
ONLY_SHOW_RELEVANT_REPOS=false is necessary for many private/enterprise
instances, because many private repositories do not have
"description/topic", users just want to search by their names.

This PR also adds `PageIsExploreRepositories` check, to make code more
strict, because the `search` template is shared for different purpose.

And during the test, I found a bug that the "Search" button didn't
respect the "relevant" parameter, so this PR fixes the bug by the way
together.
2023-03-30 09:09:22 -05:00
..
code.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
navbar.tmpl Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
organizations.tmpl Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
repo_list.tmpl Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
repo_search.tmpl Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (#23766) (#23791) 2023-03-30 09:09:22 -05:00
repos.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
search.tmpl Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
users.tmpl Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00