mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +00:00
#1459 Dashboard issues lacks sorting
This commit is contained in:
parent
00eb2b221f
commit
603c7389b8
7 changed files with 53 additions and 19 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue