{{$defaultBranch := $.root.BranchName}} {{if and .root.IsViewTag (not .noTag)}} {{$defaultBranch = .root.TagName}} {{end}} {{if eq $defaultBranch ""}} {{$defaultBranch = $.root.Repository.DefaultBranch}} {{end}} {{$type := ""}} {{if and .root.IsViewTag (not .noTag)}} {{$type = "tag"}} {{else if .root.IsViewBranch}} {{$type = "branch"}} {{else}} {{$type = "tree"}} {{end}} {{$showBranchesInDropdown := not .root.HideBranchesInDropdown}}
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}