Skip to content

Commit 14df388

Browse files
committed
fix
1 parent f238e45 commit 14df388

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/repo/branch_dropdown.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@ Search "repo/branch_dropdown" in the template directory to find all occurrences.
4949
<div class="ui dropdown custom branch-selector-dropdown ellipsis-text-items">
5050
<div class="ui compact button branch-dropdown-button">
5151
<span class="flex-text-block gt-ellipsis">
52-
{{if not .DropdownFixedText}}
52+
{{if .DropdownFixedText}}
53+
{{.DropdownFixedText}}
54+
{{else}}
5355
{{if .ShowTabTags}}
5456
{{svg "octicon-tag"}}
5557
{{else if .ShowTabBranches}}
5658
{{svg "octicon-git-branch"}}
5759
{{end}}
60+
<strong class="tw-inline-block gt-ellipsis">{{.SelectedRefShortName}}</strong>
5861
{{end}}
59-
<strong class="tw-inline-block gt-ellipsis">{{Iif .DropdownFixedText .SelectedRefShortName}}</strong>
6062
</span>
6163
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
6264
</div>

0 commit comments

Comments
 (0)