diff --git a/src/main/twirl/gitbucket/core/repo/blob.scala.html b/src/main/twirl/gitbucket/core/repo/blob.scala.html index ea97b8e..bae4c53 100644 --- a/src/main/twirl/gitbucket/core/repo/blob.scala.html +++ b/src/main/twirl/gitbucket/core/repo/blob.scala.html @@ -11,7 +11,7 @@ @html.menu("code", repository){
- + Find file
Newer diff --git a/src/main/twirl/gitbucket/core/repo/files.scala.html b/src/main/twirl/gitbucket/core/repo/files.scala.html index 48b7745..1a1397d 100644 --- a/src/main/twirl/gitbucket/core/repo/files.scala.html +++ b/src/main/twirl/gitbucket/core/repo/files.scala.html @@ -59,30 +59,29 @@ }
-
-
- New file - Find file - @* - @if(pathList.nonEmpty){ - History - } - *@ -
-
} +
+
+ New file + Find file + @if(pathList.nonEmpty){ + History + } +
+
@helper.html.branchcontrol(branch, repository, hasWritePermission){ @repository.branchList.map { x =>
  • @helper.html.checkicon(x == branch) @x
  • } } - @branchPullRequest.map{ case (pullRequest, issue) => - View #@pullRequest.issueId - }.getOrElse { - New pull request - } - @if(pathList.nonEmpty) { + @if(pathList.isEmpty){ + @branchPullRequest.map{ case (pullRequest, issue) => + View #@pullRequest.issueId + }.getOrElse { + New pull request + } + } else { @repository.name / @pathList.zipWithIndex.map { case (section, i) => @section /