From 7da89940e34378bf05b0813edf1d206fb866c1de Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sun, 18 Jan 2015 03:59:33 +0900 Subject: [PATCH] Use the issues list template for the pull request list in the dashboard --- .../twirl/dashboard/issueslist.scala.html | 7 -- src/main/twirl/dashboard/pulls.scala.html | 2 +- src/main/twirl/dashboard/pullslist.scala.html | 68 ------------------- 3 files changed, 1 insertion(+), 76 deletions(-) delete mode 100644 src/main/twirl/dashboard/pullslist.scala.html diff --git a/src/main/twirl/dashboard/issueslist.scala.html b/src/main/twirl/dashboard/issueslist.scala.html index 37ef3a1db..42b5f95f7 100644 --- a/src/main/twirl/dashboard/issueslist.scala.html +++ b/src/main/twirl/dashboard/issueslist.scala.html @@ -8,13 +8,6 @@ @import context._ @import view.helpers._ @import service.IssuesService.IssueInfo -@* - -*@
diff --git a/src/main/twirl/dashboard/pulls.scala.html b/src/main/twirl/dashboard/pulls.scala.html index 0e2eff640..d908e948c 100644 --- a/src/main/twirl/dashboard/pulls.scala.html +++ b/src/main/twirl/dashboard/pulls.scala.html @@ -11,6 +11,6 @@ @dashboard.html.tab("pulls")
@issuesnavi(filter, "pulls", condition) - @pullslist(issues, page, openCount, closedCount, condition, filter, groups) + @issueslist(issues, page, openCount, closedCount, condition, filter, groups)
} diff --git a/src/main/twirl/dashboard/pullslist.scala.html b/src/main/twirl/dashboard/pullslist.scala.html deleted file mode 100644 index af58f0211..000000000 --- a/src/main/twirl/dashboard/pullslist.scala.html +++ /dev/null @@ -1,68 +0,0 @@ -@(issues: List[service.IssuesService.IssueInfo], - page: Int, - openCount: Int, - closedCount: Int, - condition: service.IssuesService.IssueSearchCondition, - filter: String, - groups: List[String])(implicit context: app.Context) -@import context._ -@import view.helpers._ -@import service.IssuesService.IssueInfo -@* - -*@ - - - - - @issues.map { case IssueInfo(issue, labels, milestone, commentCount) => - - - - } -
- @dashboard.html.header(openCount, closedCount, condition, groups) -
- - @issue.userName/@issue.repositoryName ・ - @issue.title - #@issue.issueId -
- @issue.content.map { content => - @cut(content, 90) - }.getOrElse { - No description available - } -
-
- @avatarLink(issue.openedUserName, 20) by @user(issue.openedUserName, styleClass="username") @datetime(issue.registeredDate)  - @if(commentCount > 0){ - @commentCount @plural(commentCount, "comment") - } -
-
-
- @helper.html.paginator(page, (if(condition.state == "open") openCount else closedCount), service.PullRequestService.PullRequestLimit, 10, condition.toURL) -