summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-04 12:50:02 -0500
committerUnknwon <u@gogs.io>2015-11-04 12:50:02 -0500
commit603c7389b8e56740033e51b36b79e61136b46002 (patch)
treef8517fe0a91e81f6169d8b22a41c7ba6c4de1da2 /routers
parent00eb2b221ff189a658cf4a7d7fa40e55ae66dfd9 (diff)
downloadgitea-603c7389b8e56740033e51b36b79e61136b46002.tar.gz
gitea-603c7389b8e56740033e51b36b79e61136b46002.zip
#1459 Dashboard issues lacks sorting
Diffstat (limited to 'routers')
-rw-r--r--routers/user/home.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 581bb0633c..c5c42694fa 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -156,6 +156,7 @@ func Issues(ctx *middleware.Context) {
// Organization does not have view type and filter mode.
var (
viewType string
+ sortType = ctx.Query("sort")
filterMode = models.FM_ALL
assigneeID int64
posterID int64
@@ -248,6 +249,7 @@ func Issues(ctx *middleware.Context) {
Page: page,
IsClosed: isShowClosed,
IsPull: isPullList,
+ SortType: sortType,
})
if err != nil {
ctx.Handle(500, "Issues: %v", err)
@@ -276,6 +278,7 @@ func Issues(ctx *middleware.Context) {
ctx.Data["IssueStats"] = issueStats
ctx.Data["ViewType"] = viewType
+ ctx.Data["SortType"] = sortType
ctx.Data["RepoID"] = repoID
ctx.Data["IsShowClosed"] = isShowClosed
if isShowClosed {