File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 88
99 {{$branchDropdownCurrentRefType := "branch"}}
1010 {{$branchDropdownCurrentRefShortName := .RefName}}
11- {{if and (not .IsViewBranch) (not .IsViewTag)}}
12- {{$branchDropdownCurrentRefShortName = ShortSha .RefName}}
13- {{end}}
1411 {{if .IsViewTag}}
1512 {{$branchDropdownCurrentRefType = "tag"}}
1613 {{$branchDropdownCurrentRefShortName = .TagName}}
14+ {{else if not .IsViewBranch}}
15+ {{$branchDropdownCurrentRefShortName = ShortSha .RefName}}
1716 {{end}}
1817 {{template "repo/branch_dropdown" dict
1918 "Repository" .Repository
Original file line number Diff line number Diff line change 2626 <div class="repo-button-row-left">
2727 {{$branchDropdownCurrentRefType := "branch"}}
2828 {{$branchDropdownCurrentRefShortName := .RefName}}
29- {{if and (not .IsViewBranch) (not .IsViewTag)}}
30- {{$branchDropdownCurrentRefShortName = ShortSha .RefName}}
31- {{end}}
3229 {{if .IsViewTag}}
3330 {{$branchDropdownCurrentRefType = "tag"}}
3431 {{$branchDropdownCurrentRefShortName = .TagName}}
32+ {{else if not .IsViewBranch}}
33+ {{$branchDropdownCurrentRefShortName = ShortSha .RefName}}
3534 {{end}}
3635 {{template "repo/branch_dropdown" dict
3736 "Repository" .Repository
You can’t perform that action at this time.
0 commit comments