diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-03-03 10:28:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-03 02:28:45 +0000 |
commit | 2b059f493e46b8b0fb52492623e36a8375cb5fbb (patch) | |
tree | d6fa8192936f7366a4c950ba7a77ecfbb9649782 /templates | |
parent | 5ca2971ccbc8769f7e6ee41c125db47f818e7599 (diff) | |
download | gitea-2b059f493e46b8b0fb52492623e36a8375cb5fbb.tar.gz gitea-2b059f493e46b8b0fb52492623e36a8375cb5fbb.zip |
Only use supported sort order for "explore/users" page (#29430) (#29443)
Backport #29430
Thanks to inferenceus : some sort orders on the "explore/users" page
could list users by their lastlogintime/updatetime.
It leaks user's activity unintentionally. This PR makes that page only
use "supported" sort orders.
Removing the "sort orders" could also be a good solution, while IMO at
the moment keeping the "create time" and "name" orders is also fine, in
case some users would like to find a target user in the search result,
the "sort order" might help.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/explore/search.tmpl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/templates/explore/search.tmpl b/templates/explore/search.tmpl index 63b842cbbf..9597c79449 100644 --- a/templates/explore/search.tmpl +++ b/templates/explore/search.tmpl @@ -16,8 +16,6 @@ <a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$.Link}}?sort=oldest&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}</a> <a class="{{if eq .SortType "alphabetically"}}active {{end}}item" href="{{$.Link}}?sort=alphabetically&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a> <a class="{{if eq .SortType "reversealphabetically"}}active {{end}}item" href="{{$.Link}}?sort=reversealphabetically&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a> - <a class="{{if eq .SortType "recentupdate"}}active {{end}}item" href="{{$.Link}}?sort=recentupdate&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.recentupdate"}}</a> - <a class="{{if eq .SortType "leastupdate"}}active {{end}}item" href="{{$.Link}}?sort=leastupdate&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.leastupdate"}}</a> </div> </div> </div> |