diff options
author | jladbrook <jhladbrook@gmail.com> | 2023-09-12 13:26:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 12:26:51 +0000 |
commit | e33f112e01d2453f8674c05556944277bf38567b (patch) | |
tree | 5c82102ee1cf95df3b2e41128daadddb7ce5fbc3 /models | |
parent | e481638010b669133a9106abbbf14fd6d76fb32e (diff) | |
download | gitea-e33f112e01d2453f8674c05556944277bf38567b.tar.gz gitea-e33f112e01d2453f8674c05556944277bf38567b.zip |
resolve issue with sort icons on admin/users and admin/runners (#24360)
Fixes #24327 to avoid the sort icon changing the table header over
multiple lines and adds missing sort icons on the runners page.
Diffstat (limited to 'models')
-rw-r--r-- | models/actions/runner.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/models/actions/runner.go b/models/actions/runner.go index c79a6827fc..ec6b49cf16 100644 --- a/models/actions/runner.go +++ b/models/actions/runner.go @@ -189,6 +189,12 @@ func (opts FindRunnerOptions) toOrder() string { return "last_online ASC" case "alphabetically": return "name ASC" + case "reversealphabetically": + return "name DESC" + case "newest": + return "id DESC" + case "oldest": + return "id ASC" } return "last_online DESC" } |