mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-21 01:10:19 +00:00
Added sorting to the labels & milestones page (#199)
This commit is contained in:
parent
f27d87d93b
commit
a345a03d99
7 changed files with 82 additions and 13 deletions
|
@ -15,7 +15,7 @@ import (
|
|||
|
||||
// ListLabels list all the labels of a repository
|
||||
func ListLabels(ctx *context.APIContext) {
|
||||
labels, err := models.GetLabelsByRepoID(ctx.Repo.Repository.ID)
|
||||
labels, err := models.GetLabelsByRepoID(ctx.Repo.Repository.ID, ctx.Query("sort"))
|
||||
if err != nil {
|
||||
ctx.Error(500, "GetLabelsByRepoID", err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue