mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 16:44:26 +00:00
fix: show tag name on branch/tag selector if repo shown from tag ref (#32689)
This commit is contained in:
parent
e3e32605a1
commit
2824ae2128
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user