diff --git a/src/main/twirl/pulls/conversation.scala.html b/src/main/twirl/pulls/conversation.scala.html new file mode 100644 index 0000000..593b894 --- /dev/null +++ b/src/main/twirl/pulls/conversation.scala.html @@ -0,0 +1,88 @@ +@(issue: model.Issue, + pullreq: model.PullRequest, + comments: List[model.IssueComment], + issueLabels: List[model.Label], + collaborators: List[String], + milestones: List[(model.Milestone, Int, Int)], + labels: List[model.Label], + hasWritePermission: Boolean, + repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) +@import context._ +@import view.helpers._ +
+
+ @issues.html.issuedetail(issue, comments, collaborators, milestones, hasWritePermission, repository) + @issues.html.commentlist(issue, comments, hasWritePermission, repository, Some(pullreq)) + @if(hasWritePermission && !issue.closed){ +
+
+
+ +
+ +
+
+ } + @if(hasWritePermission && issue.closed && pullreq.userName == pullreq.requestUserName && + pullreq.repositoryName == pullreq.requestRepositoryName && repository.branchList.contains(pullreq.requestBranch)){ +
+
+ Delete branch +
+ Pull request successfully merged and closed +
+ You're all set-the @pullreq.requestBranch branch can be safely deleted. +
+
+ } + @issues.html.commentform(issue, hasWritePermission, repository) +
+
+ @if(issue.closed) { + @if(comments.exists(_.action == "merge")){ + Merged + } else { + Closed + } + } else { + Open + } +
+ @comments.size @plural(comments.size, "comment") +
+
+ @issues.html.labels(issue, issueLabels, labels, hasWritePermission, repository) +
+
+ \ No newline at end of file diff --git a/src/main/twirl/pulls/discussion.scala.html b/src/main/twirl/pulls/discussion.scala.html deleted file mode 100644 index 593b894..0000000 --- a/src/main/twirl/pulls/discussion.scala.html +++ /dev/null @@ -1,88 +0,0 @@ -@(issue: model.Issue, - pullreq: model.PullRequest, - comments: List[model.IssueComment], - issueLabels: List[model.Label], - collaborators: List[String], - milestones: List[(model.Milestone, Int, Int)], - labels: List[model.Label], - hasWritePermission: Boolean, - repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) -@import context._ -@import view.helpers._ -
-
- @issues.html.issuedetail(issue, comments, collaborators, milestones, hasWritePermission, repository) - @issues.html.commentlist(issue, comments, hasWritePermission, repository, Some(pullreq)) - @if(hasWritePermission && !issue.closed){ -
-
-
- -
- -
-
- } - @if(hasWritePermission && issue.closed && pullreq.userName == pullreq.requestUserName && - pullreq.repositoryName == pullreq.requestRepositoryName && repository.branchList.contains(pullreq.requestBranch)){ -
-
- Delete branch -
- Pull request successfully merged and closed -
- You're all set-the @pullreq.requestBranch branch can be safely deleted. -
-
- } - @issues.html.commentform(issue, hasWritePermission, repository) -
-
- @if(issue.closed) { - @if(comments.exists(_.action == "merge")){ - Merged - } else { - Closed - } - } else { - Open - } -
- @comments.size @plural(comments.size, "comment") -
-
- @issues.html.labels(issue, issueLabels, labels, hasWritePermission, repository) -
-
- \ No newline at end of file diff --git a/src/main/twirl/pulls/pullreq.scala.html b/src/main/twirl/pulls/pullreq.scala.html index e7b0975..f269412 100644 --- a/src/main/twirl/pulls/pullreq.scala.html +++ b/src/main/twirl/pulls/pullreq.scala.html @@ -33,13 +33,13 @@ }
-
- @pulls.html.discussion(issue, pullreq, comments, issueLabels, collaborators, milestones, labels, hasWritePermission, repository) +
+ @pulls.html.conversation(issue, pullreq, comments, issueLabels, collaborators, milestones, labels, hasWritePermission, repository)
@pulls.html.commits(dayByDayCommits, repository)