Skip to content

Commit 2824ae2

Browse files
authored
fix: show tag name on branch/tag selector if repo shown from tag ref (#32689)
1 parent e3e3260 commit 2824ae2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/repo/commits.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
{{$branchDropdownCurrentRefType := "branch"}}
1010
{{$branchDropdownCurrentRefShortName := .BranchName}}
1111
{{if .IsViewTag}}
12-
{{$branchDropdownCurrentRefType := "tag"}}
13-
{{$branchDropdownCurrentRefShortName := .TagName}}
12+
{{$branchDropdownCurrentRefType = "tag"}}
13+
{{$branchDropdownCurrentRefShortName = .TagName}}
1414
{{end}}
1515
{{template "repo/branch_dropdown" dict
1616
"Repository" .Repository

templates/repo/home.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
{{$branchDropdownCurrentRefType := "branch"}}
5151
{{$branchDropdownCurrentRefShortName := .BranchName}}
5252
{{if .IsViewTag}}
53-
{{$branchDropdownCurrentRefType := "tag"}}
54-
{{$branchDropdownCurrentRefShortName := .TagName}}
53+
{{$branchDropdownCurrentRefType = "tag"}}
54+
{{$branchDropdownCurrentRefShortName = .TagName}}
5555
{{end}}
5656
{{template "repo/branch_dropdown" dict
5757
"Repository" .Repository

0 commit comments

Comments
 (0)