Fix template file names.

This commit is contained in:
shimamoto
2013-07-01 13:43:03 +09:00
parent d64466c13c
commit 8cb7533d08
4 changed files with 72 additions and 60 deletions

View File

@@ -98,8 +98,8 @@ trait IssuesControllerBase extends ControllerBase {
ajaxGet("/:owner/:repository/issues/_data/:id"){
getIssue(params("owner"), params("repository"), params("id")) map { x =>
params.get("dataType") collect {
case t if t == "html" => issues.html.edit(
Some(x.title), x.content getOrElse "", x.issueId, x.userName, x.repositoryName)
case t if t == "html" => issues.html.editissue(
x.title, x.content, x.issueId, x.userName, x.repositoryName)
} getOrElse {
contentType = formats("json")
org.json4s.jackson.Serialization.write(
@@ -115,8 +115,8 @@ trait IssuesControllerBase extends ControllerBase {
ajaxGet("/:owner/:repository/issue_comments/_data/:id"){
getComment(params("id")) map { x =>
params.get("dataType") collect {
case t if t == "html" => issues.html.edit(
None, x.content, x.commentId, x.userName, x.repositoryName)
case t if t == "html" => issues.html.editcomment(
x.content, x.commentId, x.userName, x.repositoryName)
} getOrElse {
contentType = formats("json")
org.json4s.jackson.Serialization.write(