|
|
|
|
@ -47,16 +47,20 @@ Search "repo/branch_dropdown" in the template directory to find all occurrences.
|
|
|
|
|
>
|
|
|
|
|
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}
|
|
|
|
|
<div class="ui dropdown custom branch-selector-dropdown ellipsis-text-items">
|
|
|
|
|
<div class="ui button branch-dropdown-button">
|
|
|
|
|
<div class="ui compact button branch-dropdown-button">
|
|
|
|
|
<span class="flex-text-block gt-ellipsis">
|
|
|
|
|
{{if not .DropdownFixedText}}
|
|
|
|
|
{{if .ShowTabTags}}
|
|
|
|
|
{{if .DropdownFixedText}}
|
|
|
|
|
{{.DropdownFixedText}}
|
|
|
|
|
{{else}}
|
|
|
|
|
{{if eq .CurrentRefType "tag"}}
|
|
|
|
|
{{svg "octicon-tag"}}
|
|
|
|
|
{{else if .ShowTabBranches}}
|
|
|
|
|
{{else if eq .CurrentRefType "branch"}}
|
|
|
|
|
{{svg "octicon-git-branch"}}
|
|
|
|
|
{{else}}
|
|
|
|
|
{{svg "octicon-git-commit"}}
|
|
|
|
|
{{end}}
|
|
|
|
|
<strong class="tw-inline-block gt-ellipsis">{{.CurrentRefShortName}}</strong>
|
|
|
|
|
{{end}}
|
|
|
|
|
<strong class="tw-ml-2 tw-inline-block gt-ellipsis">{{Iif .DropdownFixedText .SelectedRefShortName}}</strong>
|
|
|
|
|
</span>
|
|
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
|
|
|
|
</div>
|
|
|
|
|
|