diff --git a/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html b/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html index 237a760cd..b58b68a78 100644 --- a/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html +++ b/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html @@ -67,7 +67,7 @@ }); function updateBranchControlList(active) { - if (active == 'branches') { + if (active === 'branches') { $('li#branch-control-tab-branches').addClass('active'); $('li#branch-control-tab-tags').removeClass('active'); @@ -81,7 +81,7 @@ } else { $('#branch-control-input').attr('placeholder', 'Find branch ...'); } - } else if (active == 'tags') { + } else if (active === 'tags') { $('li#branch-control-tab-branches').removeClass('active'); $('li#branch-control-tab-tags').addClass('active'); diff --git a/src/main/twirl/gitbucket/core/repo/blob.scala.html b/src/main/twirl/gitbucket/core/repo/blob.scala.html index 1178a80b3..30acdc5c8 100644 --- a/src/main/twirl/gitbucket/core/repo/blob.scala.html +++ b/src/main/twirl/gitbucket/core/repo/blob.scala.html @@ -40,7 +40,10 @@
@gitbucket.core.helper.html.branchcontrol(branch, repository, hasWritePermission){ @repository.branchList.map { x => -
  • @gitbucket.core.helper.html.checkicon(x == branch) @x
  • +
  • @gitbucket.core.helper.html.checkicon(x == branch) @x
  • + } + @repository.tags.map { x => +
  • @gitbucket.core.helper.html.checkicon(x.name == branch) @x.name
  • } }
    diff --git a/src/main/twirl/gitbucket/core/repo/commits.scala.html b/src/main/twirl/gitbucket/core/repo/commits.scala.html index e518d1eb3..8b7f1b7b6 100644 --- a/src/main/twirl/gitbucket/core/repo/commits.scala.html +++ b/src/main/twirl/gitbucket/core/repo/commits.scala.html @@ -12,7 +12,10 @@ @if(pathList.isEmpty){ @gitbucket.core.helper.html.branchcontrol(branch, repository, hasWritePermission){ @repository.branchList.map { x => -
  • @gitbucket.core.helper.html.checkicon(x == branch) @x
  • +
  • @gitbucket.core.helper.html.checkicon(x == branch) @x
  • + } + @repository.tags.map { x => +
  • @gitbucket.core.helper.html.checkicon(x.name == branch) @x.name
  • } } }