diff --git a/src/main/scala/gitbucket/core/controller/PullRequestsController.scala b/src/main/scala/gitbucket/core/controller/PullRequestsController.scala index eae7523..6aec618 100644 --- a/src/main/scala/gitbucket/core/controller/PullRequestsController.scala +++ b/src/main/scala/gitbucket/core/controller/PullRequestsController.scala @@ -183,7 +183,7 @@ pullreq, statuses, repository, - s"${context.baseUrl}/git/${pullreq.requestUserName}/${pullreq.requestRepositoryName}.git") + getRepository(pullreq.requestUserName, pullreq.requestRepositoryName, context.baseUrl).get) } } getOrElse NotFound }) diff --git a/src/main/twirl/gitbucket/core/admin/system.scala.html b/src/main/twirl/gitbucket/core/admin/system.scala.html index 6bb5caa..276c25e 100644 --- a/src/main/twirl/gitbucket/core/admin/system.scala.html +++ b/src/main/twirl/gitbucket/core/admin/system.scala.html @@ -280,9 +280,9 @@ -
+
-
+ } } diff --git a/src/main/twirl/gitbucket/core/helper/copy.scala.html b/src/main/twirl/gitbucket/core/helper/copy.scala.html index 7a09a52..75f3102 100644 --- a/src/main/twirl/gitbucket/core/helper/copy.scala.html +++ b/src/main/twirl/gitbucket/core/helper/copy.scala.html @@ -1,5 +1,5 @@ -@(id: String, value: String)(html: Html) -
+@(id: String, value: String, prepend: Boolean = false)(html: Html) +
@html
diff --git a/src/main/twirl/gitbucket/core/pulls/mergeguide.scala.html b/src/main/twirl/gitbucket/core/pulls/mergeguide.scala.html index 5b10761..ae9e417 100644 --- a/src/main/twirl/gitbucket/core/pulls/mergeguide.scala.html +++ b/src/main/twirl/gitbucket/core/pulls/mergeguide.scala.html @@ -3,8 +3,9 @@ issue: gitbucket.core.model.Issue, pullreq: gitbucket.core.model.PullRequest, statuses: List[model.CommitStatus], - repository: gitbucket.core.service.RepositoryService.RepositoryInfo, - requestRepositoryUrl: String)(implicit context: gitbucket.core.controller.Context) + originRepository: gitbucket.core.service.RepositoryService.RepositoryInfo, + forkedRepository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context) +@import gitbucket.core.service.SystemSettingsService @import context._ @import gitbucket.core.view.helpers._ @import model.CommitState @@ -22,102 +23,101 @@ @status.description.map{ desc => — @desc }
} - }else{ - @defining(statuses.groupBy(_.state)){ stateMap => @defining(CommitState.combine(stateMap.keySet)){ state => -
- - @commitStateIcon(state) - @commitStateText(state, pullreq.commitIdTo) - — @{stateMap.map{ case (keyState, states) => states.size+" "+keyState.name }.mkString(", ")} checks -
-
- @statuses.map{ status => + } else { + @defining(statuses.groupBy(_.state)){ stateMap => + @defining(CommitState.combine(stateMap.keySet)){ state =>
- @status.targetUrl.map{ url => Details } - @commitStateIcon(status.state) - @status.context - @status.description.map{ desc => — @desc } + + @commitStateIcon(state) + @commitStateText(state, pullreq.commitIdTo) + — @{stateMap.map{ case (keyState, states) => states.size+" "+keyState.name }.mkString(", ")} checks
- } -
- } } +
+ @statuses.map{ status => +
+ @status.targetUrl.map{ url => Details } + @commitStateIcon(status.state) + @status.context + @status.description.map{ desc => — @desc } +
+ } +
+ } + } } } -
- -
-
- @if(hasConflict){ - We can’t automatically merge this pull request. - } else{ @if(hasProblem){ - Merge with caution! - } else { - This pull request can be automatically merged. - } } -
-
- @if(hasConflict){ - Use the command line to resolve conflicts before continuing. - } else { - You can also merge branches on the command line. - } -
- - +
+ +
+
+ @if(hasConflict){ + We can’t automatically merge this pull request. + } else { + @if(hasProblem){ + Merge with caution! + } else { + This pull request can be automatically merged. + } + } +
+
+ @if(hasConflict){ + Use the command line to resolve conflicts before continuing. + } else { + You can also merge branches on the command line. + } +
+ *@ -
+
-
+ } }