fix: show tag name on branch/tag selector if repo shown from tag ref (#32689)

This commit is contained in:
metiftikci 2024-12-02 16:34:16 +03:00 committed by GitHub
parent e3e32605a1
commit 2824ae2128
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -9,8 +9,8 @@
{{$branchDropdownCurrentRefType := "branch"}} {{$branchDropdownCurrentRefType := "branch"}}
{{$branchDropdownCurrentRefShortName := .BranchName}} {{$branchDropdownCurrentRefShortName := .BranchName}}
{{if .IsViewTag}} {{if .IsViewTag}}
{{$branchDropdownCurrentRefType := "tag"}} {{$branchDropdownCurrentRefType = "tag"}}
{{$branchDropdownCurrentRefShortName := .TagName}} {{$branchDropdownCurrentRefShortName = .TagName}}
{{end}} {{end}}
{{template "repo/branch_dropdown" dict {{template "repo/branch_dropdown" dict
"Repository" .Repository "Repository" .Repository

View File

@ -50,8 +50,8 @@
{{$branchDropdownCurrentRefType := "branch"}} {{$branchDropdownCurrentRefType := "branch"}}
{{$branchDropdownCurrentRefShortName := .BranchName}} {{$branchDropdownCurrentRefShortName := .BranchName}}
{{if .IsViewTag}} {{if .IsViewTag}}
{{$branchDropdownCurrentRefType := "tag"}} {{$branchDropdownCurrentRefType = "tag"}}
{{$branchDropdownCurrentRefShortName := .TagName}} {{$branchDropdownCurrentRefShortName = .TagName}}
{{end}} {{end}}
{{template "repo/branch_dropdown" dict {{template "repo/branch_dropdown" dict
"Repository" .Repository "Repository" .Repository