(refs #37)Add participants to issue detail

The design is inherited from Github.
This commit is contained in:
tomykaira
2013-07-21 18:22:13 +09:00
parent e54754d04f
commit 6e96ad0f17
3 changed files with 14 additions and 1 deletions

View File

@@ -62,9 +62,12 @@ trait IssuesControllerBase extends ControllerBase {
val issueId = params("id")
getIssue(owner, name, issueId) map {
val comments = getComments(owner, name, issueId.toInt)
val participantSet = comments.foldRight(Set(owner)) { (comment, set) => set + comment.commentedUserName }
issues.html.issue(
_,
getComments(owner, name, issueId.toInt),
comments,
participantSet,
getIssueLabels(owner, name, issueId.toInt),
(getCollaborators(owner, name) :+ owner).sorted,
getMilestones(owner, name),