diff --git a/src/main/twirl/gitbucket/core/repo/branches.scala.html b/src/main/twirl/gitbucket/core/repo/branches.scala.html index 7163e5a..38ca4bb 100644 --- a/src/main/twirl/gitbucket/core/repo/branches.scala.html +++ b/src/main/twirl/gitbucket/core/repo/branches.scala.html @@ -4,81 +4,81 @@ @import gitbucket.core.view.helpers @gitbucket.core.html.main(s"${repository.owner}/${repository.name}", Some(repository)) { @gitbucket.core.html.menu("branches", repository){ -
All branches | +All branches | ||
---|---|---|---|
-
- @branch.mergeInfo.map{ info =>
- @prs.map{ case (pull, issue) =>
- #@issue.issueId
- @if(issue.closed) {
- @if(info.isMerged){
- Merged
- } else {
- Closed
- }
- } else {
- Open
- }
- }.getOrElse{
- @if(context.loginAccount.isDefined){
- New Pull Request
- } else {
- Compare
- }
- }
- @if(hasWritePermission){
-
- @if(prs.map(!_._2.closed).getOrElse(false)){
-
- } else {
- @if(isProtected){
-
- } else {
-
- }
- }
-
- }
- }
-
-
- @if(isProtected){ }
- @branch.name
-
+ @if(isProtected){ }
+ @branch.name
+ |
+
+ @if(branch.mergeInfo.isEmpty){
+ Default
+ } else {
+ @branch.mergeInfo.map{ info =>
+ |
+
+
+ }
+ }
+
+
+ |
+ @branch.mergeInfo.map{ info =>
+ @prs.map{ case (pull, issue) =>
+ #@issue.issueId
+ @if(issue.closed) {
+ @if(info.isMerged){
+ Merged
+ } else {
+ Closed
+ }
+ } else {
+ Open
+ }
+ }.getOrElse{
+ @if(context.loginAccount.isDefined){
+ New Pull Request
+ } else {
+ Compare
}
}
+ @if(hasWritePermission){
+
+ @if(prs.map(!_._2.closed).getOrElse(false)){
+
+ } else {
+ @if(isProtected){
+
+ } else {
+
+ }
+ }
+
+ }
+ }
|