forked from Shiloh/githaven
Waiting for UI
This commit is contained in:
parent
7d89e765ab
commit
495d939ca5
@ -128,6 +128,8 @@ func GetIssues(uid, rid, pid, mid int64, page int, isClosed bool, labels, sortTy
|
|||||||
sess.Desc("num_comments")
|
sess.Desc("num_comments")
|
||||||
case "leastcomment":
|
case "leastcomment":
|
||||||
sess.Asc("num_comments")
|
sess.Asc("num_comments")
|
||||||
|
case "priority":
|
||||||
|
sess.Desc("priority")
|
||||||
default:
|
default:
|
||||||
sess.Desc("created")
|
sess.Desc("created")
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ func Issues(ctx *middleware.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get issue-user pairs.
|
// Get issue-user pairs.
|
||||||
pairs, err := models.GetIssueUserPairs(ctx.Repo.Repository.Id, ctx.User.Id, isShowClosed)
|
pairs, err := models.GetIssueUserPairs(ctx.Repo.Repository.Id, posterId, isShowClosed)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.Handle(500, "issue.Issues(GetIssueUserPairs): %v", err)
|
ctx.Handle(500, "issue.Issues(GetIssueUserPairs): %v", err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user