mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-03 20:15:59 +01:00
Implemented the reference of the issue.
This commit is contained in:
@@ -23,7 +23,13 @@ trait IssuesControllerBase extends ControllerBase {
|
||||
}
|
||||
|
||||
get("/:owner/:repository/issues/:id"){
|
||||
issues.html.issue(getRepository(params("owner"), params("repository"), baseUrl).get)
|
||||
val owner = params("owner")
|
||||
val repository = params("repository")
|
||||
val issueId = params("id")
|
||||
|
||||
getIssue(owner, repository, issueId) map { issue =>
|
||||
issues.html.issue(issue, getRepository(owner, repository, baseUrl).get)
|
||||
} getOrElse NotFound
|
||||
}
|
||||
|
||||
get("/:owner/:repository/issues/new")( usersOnly {
|
||||
|
||||
Reference in New Issue
Block a user