diff --git a/src/main/scala/app/IssuesController.scala b/src/main/scala/app/IssuesController.scala index 31e7e29..c87c7fc 100644 --- a/src/main/scala/app/IssuesController.scala +++ b/src/main/scala/app/IssuesController.scala @@ -61,6 +61,8 @@ _, getComments(owner, repository, issueId.toInt), getIssueLabel(owner, repository, issueId.toInt), + (getCollaborators(owner, repository) :+ owner).sorted, + getMilestones(owner, repository), getLabels(owner, repository), getRepository(owner, repository, baseUrl).get) } getOrElse NotFound @@ -71,10 +73,13 @@ val owner = params("owner") val repository = params("repository") - getRepository(owner, repository, baseUrl) - .map (issues.html.create((getCollaborators(owner, repository) :+ owner).sorted, - getMilestones(owner, repository), getLabels(owner, repository), _)) - .getOrElse (NotFound) + getRepository(owner, repository, baseUrl).map { + issues.html.create( + (getCollaborators(owner, repository) :+ owner).sorted, + getMilestones(owner, repository), + getLabels(owner, repository), + _) + } getOrElse NotFound }) // TODO requires users only and readable repository checking diff --git a/src/main/twirl/issues/issue.scala.html b/src/main/twirl/issues/issue.scala.html index 9c47585..631dffd 100644 --- a/src/main/twirl/issues/issue.scala.html +++ b/src/main/twirl/issues/issue.scala.html @@ -1,6 +1,8 @@ @(issue: model.Issue, comments: List[model.IssueComment], issueLabels: List[model.Label], + collaborators: List[String], + milestones: List[model.Milestone], labels: List[model.Label], repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) @import context._ @@ -15,25 +17,59 @@