diff --git a/src/main/twirl/repo/blob.scala.html b/src/main/twirl/repo/blob.scala.html index cbc5a43..0e7b2c4 100644 --- a/src/main/twirl/repo/blob.scala.html +++ b/src/main/twirl/repo/blob.scala.html @@ -9,6 +9,15 @@ @html.main(s"${repository.owner}/${repository.name}", Some(repository)) { @html.menu("code", repository){
+ @helper.html.dropdown( + value = if(branch.length == 40) branch.substring(0, 10) else branch, + prefix = if(branch.length == 40) "tree" else if(repository.branchList.contains(branch)) "branch" else "tree", + mini = true + ){ + @repository.branchList.map { x => +
  • @helper.html.checkicon(x == branch) @x
  • + } + } @repository.name / @pathList.zipWithIndex.map { case (section, i) => @if(i == pathList.length - 1){ diff --git a/src/main/twirl/repo/commits.scala.html b/src/main/twirl/repo/commits.scala.html index 1ace0e5..60d9b2f 100644 --- a/src/main/twirl/repo/commits.scala.html +++ b/src/main/twirl/repo/commits.scala.html @@ -9,6 +9,15 @@ @html.main(s"${repository.owner}/${repository.name}", Some(repository)) { @html.menu("code", repository){
    + @helper.html.dropdown( + value = if(branch.length == 40) branch.substring(0, 10) else branch, + prefix = if(branch.length == 40) "tree" else if(repository.branchList.contains(branch)) "branch" else "tree", + mini = true + ){ + @repository.branchList.map { x => +
  • @helper.html.checkicon(x == branch) @x
  • + } + } @if(pathList.isEmpty){ @repository.name / Commit History } diff --git a/src/main/twirl/repo/files.scala.html b/src/main/twirl/repo/files.scala.html index fbb60b1..d304a23 100644 --- a/src/main/twirl/repo/files.scala.html +++ b/src/main/twirl/repo/files.scala.html @@ -10,6 +10,15 @@ @html.main(s"${repository.owner}/${repository.name}", Some(repository)) { @html.menu("code", repository, Some(branch), pathList.isEmpty){
    + @helper.html.dropdown( + value = if(branch.length == 40) branch.substring(0, 10) else branch, + prefix = if(branch.length == 40) "tree" else if(repository.branchList.contains(branch)) "branch" else "tree", + mini = true + ){ + @repository.branchList.map { x => +
  • @helper.html.checkicon(x == branch) @x
  • + } + } @repository.name / @pathList.zipWithIndex.map { case (section, i) => @section / diff --git a/src/main/webapp/assets/common/css/gitbucket.css b/src/main/webapp/assets/common/css/gitbucket.css index f7cf91b..99888f4 100644 --- a/src/main/webapp/assets/common/css/gitbucket.css +++ b/src/main/webapp/assets/common/css/gitbucket.css @@ -67,8 +67,8 @@ /* General Styles */ /* ======================================================================== */ div.head { - font-size: large; margin-bottom: 10px; + font-weight: bold; } div.head div.forked {