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 8
8
9
9
{{$branchDropdownCurrentRefType := "branch"}}
10
10
{{$branchDropdownCurrentRefShortName := .RefName}}
11
- {{if and (not .IsViewBranch) (not .IsViewTag)}}
12
- {{$branchDropdownCurrentRefShortName = ShortSha .RefName}}
13
- {{end}}
14
11
{{if .IsViewTag}}
15
12
{{$branchDropdownCurrentRefType = "tag"}}
16
13
{{$branchDropdownCurrentRefShortName = .TagName}}
14
+ {{else if not .IsViewBranch}}
15
+ {{$branchDropdownCurrentRefShortName = ShortSha .RefName}}
17
16
{{end}}
18
17
{{template "repo/branch_dropdown" dict
19
18
"Repository" .Repository
Original file line number Diff line number Diff line change 26
26
<div class="repo-button-row-left">
27
27
{{$branchDropdownCurrentRefType := "branch"}}
28
28
{{$branchDropdownCurrentRefShortName := .RefName}}
29
- {{if and (not .IsViewBranch) (not .IsViewTag)}}
30
- {{$branchDropdownCurrentRefShortName = ShortSha .RefName}}
31
- {{end}}
32
29
{{if .IsViewTag}}
33
30
{{$branchDropdownCurrentRefType = "tag"}}
34
31
{{$branchDropdownCurrentRefShortName = .TagName}}
32
+ {{else if not .IsViewBranch}}
33
+ {{$branchDropdownCurrentRefShortName = ShortSha .RefName}}
35
34
{{end}}
36
35
{{template "repo/branch_dropdown" dict
37
36
"Repository" .Repository
You can’t perform that action at this time.
0 commit comments