diff options
author | Alexey Terentyev <terentyev.alexey@gmail.com> | 2018-05-24 04:03:42 +0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-05-24 09:03:42 +0800 |
commit | b908ac9fab141b72f38db3d40a9f6054bb701982 (patch) | |
tree | 11a91f0a12fa32b0fa834d0388949fb59d13f4a2 /models/repo_list.go | |
parent | ea2a938e8a25588634364b3bc6ce8d6634ae4c60 (diff) | |
download | gitea-b908ac9fab141b72f38db3d40a9f6054bb701982.tar.gz gitea-b908ac9fab141b72f38db3d40a9f6054bb701982.zip |
Added repository search ordered by stars or forks. Forks column in admin repo list. (#3969)
* Added repository search order by stars or forks.
Added Forks column to admin repository list.
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Renamed search repo template
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
Diffstat (limited to 'models/repo_list.go')
-rw-r--r-- | models/repo_list.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/repo_list.go b/models/repo_list.go index df6b81cb8d..b1527b73c9 100644 --- a/models/repo_list.go +++ b/models/repo_list.go @@ -152,6 +152,10 @@ const ( SearchOrderBySizeReverse = "size DESC" SearchOrderByID = "id ASC" SearchOrderByIDReverse = "id DESC" + SearchOrderByStars = "num_stars ASC" + SearchOrderByStarsReverse = "num_stars DESC" + SearchOrderByForks = "num_forks ASC" + SearchOrderByForksReverse = "num_forks DESC" ) // SearchRepositoryByName takes keyword and part of repository name to search, |