|
@repository.owner/@repository.name
diff --git a/src/main/twirl/issues/commentform.scala.html b/src/main/twirl/issues/commentform.scala.html
new file mode 100644
index 000000000..3c2f7ffa6
--- /dev/null
+++ b/src/main/twirl/issues/commentform.scala.html
@@ -0,0 +1,29 @@
+@(issue: model.Issue,
+ hasWritePermission: Boolean,
+ repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
+@import context._
+@import view.helpers._
+@if(loginAccount.isDefined){
+
+}
+
\ No newline at end of file
diff --git a/src/main/twirl/issues/commentlist.scala.html b/src/main/twirl/issues/commentlist.scala.html
new file mode 100644
index 000000000..7957ee736
--- /dev/null
+++ b/src/main/twirl/issues/commentlist.scala.html
@@ -0,0 +1,61 @@
+@(comments: List[model.IssueComment],
+ hasWritePermission: Boolean,
+ repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
+@import context._
+@import view.helpers._
+@comments.map { comment =>
+ @if(comment.action != "close" && comment.action != "reopen" && comment.action != "merge"){
+ @avatar(comment.commentedUserName, 48)
+
+ }
+ @if(comment.action == "merge"){
+
+ Merged
+ @avatar(comment.commentedUserName, 20)
+ @comment.commentedUserName merged the pull request @datetime(comment.registeredDate)
+
+ }
+ @if(comment.action == "close" || comment.action == "close_comment"){
+
+ }
+ @if(comment.action == "reopen" || comment.action == "reopen_comment"){
+
+ }
+}
+
\ No newline at end of file
diff --git a/src/main/twirl/issues/issue.scala.html b/src/main/twirl/issues/issue.scala.html
index f51c6f8c4..574221505 100644
--- a/src/main/twirl/issues/issue.scala.html
+++ b/src/main/twirl/issues/issue.scala.html
@@ -17,132 +17,9 @@
- @avatar(issue.openedUserName, 48)
-
-
-
-
-
- @markdown(issue.content getOrElse "No description given.", repository, false, true)
-
-
-
-
- @defining((issue.openedUserName :: comments.map(_.commentedUserName)).distinct){ participants =>
- @participants.size @plural(participants.size, "participant")
- @participants.map { participant => @avatar(participant, 20, tooltip = true) }
- }
-
- @comments.map { comment =>
- @if(comment.action != "close" && comment.action != "reopen"){
- @avatar(comment.commentedUserName, 48)
-
- }
- @if(comment.action == "close" || comment.action == "close_comment"){
-
- }
- @if(comment.action == "reopen" || comment.action == "reopen_comment"){
-
- }
- }
- @if(loginAccount.isDefined){
-
- }
+ @issuedetail(issue, comments, collaborators, milestones, hasWritePermission, repository)
+ @commentlist(comments, hasWritePermission, repository)
+ @commentform(issue, hasWritePermission, repository)
@if(issue.closed) {
@@ -182,82 +59,6 @@
}
\ No newline at end of file
diff --git a/src/main/twirl/issues/listparts.scala.html b/src/main/twirl/issues/listparts.scala.html
index 3541dbaa1..273dbab03 100644
--- a/src/main/twirl/issues/listparts.scala.html
+++ b/src/main/twirl/issues/listparts.scala.html
@@ -145,12 +145,21 @@
|
}
diff --git a/src/main/twirl/pulls/commits.scala.html b/src/main/twirl/pulls/commits.scala.html
new file mode 100644
index 000000000..0a883f47c
--- /dev/null
+++ b/src/main/twirl/pulls/commits.scala.html
@@ -0,0 +1,28 @@
+@(issue: model.Issue,
+ pullreq: model.PullRequest,
+ commits: Seq[Seq[util.JGitUtil.CommitInfo]],
+ 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(comments, hasWritePermission, repository)
+
+ @if(hasWritePermission && !issue.closed){
+
+ }
+ @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")
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/twirl/pulls/files.scala.html b/src/main/twirl/pulls/files.scala.html
new file mode 100644
index 000000000..a2f20d1fa
--- /dev/null
+++ b/src/main/twirl/pulls/files.scala.html
@@ -0,0 +1,48 @@
+@(issue: model.Issue,
+ pullreq: model.PullRequest,
+ diffs: Seq[util.JGitUtil.DiffInfo],
+ commitId: String,
+ hasWritePermission: Boolean,
+ repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
+@import context._
+@import view.helpers._
+@import org.eclipse.jgit.diff.DiffEntry.ChangeType
+
+
+ @pulls.html.discussion(issue, pullreq, comments, collaborators, milestones, hasConflict, hasWritePermission, repository, requestRepositoryUrl)
+
+
+ @pulls.html.commits(issue, pullreq, commits, hasWritePermission, repository)
+
+
+ @pulls.html.files(issue, pullreq, diffs, commitId, hasWritePermission, repository)
+
+
+}
+
\ No newline at end of file
diff --git a/src/main/twirl/repo/forked.scala.html b/src/main/twirl/repo/forked.scala.html
new file mode 100644
index 000000000..4efe75110
--- /dev/null
+++ b/src/main/twirl/repo/forked.scala.html
@@ -0,0 +1,28 @@
+@(members: service.RepositoryService.RepositoryTreeNode,
+ repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
+@import context._
+@import view.helpers._
+@html.main(s"${repository.owner}/${repository.name}", Some(repository)) {
+