diff --git a/src/main/twirl/gitbucket/core/repo/files.scala.html b/src/main/twirl/gitbucket/core/repo/files.scala.html
index 0a0f181..b3c6105 100644
--- a/src/main/twirl/gitbucket/core/repo/files.scala.html
+++ b/src/main/twirl/gitbucket/core/repo/files.scala.html
@@ -29,7 +29,7 @@
@if(platform != "linux" && platform != null){
}
- Download ZIP
+ Download ZIP
@@ -40,36 +40,32 @@
}
- @branchPullRequest.map{ case (pullRequest, issue) =>
-
#@pullRequest.issueId
- }.getOrElse{
-
- }
- @helper.html.branchcontrol(
- branch,
- repository,
- hasWritePermission
- ){
+ @helper.html.branchcontrol(branch, repository, hasWritePermission){
@repository.branchList.map { x =>
@helper.html.checkicon(x == branch) @x
}
}
-
@repository.name /
- @pathList.zipWithIndex.map { case (section, i) =>
-
@section /
+ @branchPullRequest.map{ case (pullRequest, issue) =>
+
View #@pullRequest.issueId
+ }.getOrElse {
+
New pull request
}
- @if(hasWritePermission){
-
+
+ @if(pathList.nonEmpty) {
+
@repository.name /
+ @pathList.zipWithIndex.map { case (section, i) =>
+
@section /
+ }
}