You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers
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.
2 years ago
..
api Match api migration behavior to web behavior (#23552) (#23573) 2 years ago
common Support sanitising the URL by removing extra slashes in the URL (#21333) (#23300) 2 years ago
install Set `X-Gitea-Debug` header once (#23361) (#23381) 2 years ago
private Refactor the setting to make unit test easier (#22405) 2 years ago
utils Implement FSFE REUSE for golang files (#21840) 2 years ago
web Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (#23766) (#23791) 2 years ago
init.go Refactor `setting.Database.UseXXX` to methods (#23354) (#23356) 2 years ago