mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
692 B
Handlebars
19 lines
692 B
Handlebars
{{$branchDropdownCurrentRefType := "branch"}}
|
|
{{$branchDropdownCurrentRefShortName := .ctxData.BranchName}}
|
|
{{if .ctxData.IsViewTag}}
|
|
{{$branchDropdownCurrentRefType = "tag"}}
|
|
{{$branchDropdownCurrentRefShortName = .ctxData.TagName}}
|
|
{{end}}
|
|
{{template "repo/branch_dropdown" dict
|
|
"Repository" .ctxData.Repository
|
|
"ShowTabBranches" true
|
|
"ShowTabTags" true
|
|
"CurrentRefType" $branchDropdownCurrentRefType
|
|
"CurrentRefShortName" $branchDropdownCurrentRefShortName
|
|
"CurrentTreePath" .ctxData.TreePath
|
|
"RefLinkTemplate" "{RepoLink}/src/{RefType}/{RefShortName}/{TreePath}"
|
|
"AllowCreateNewRef" .ctxData.CanCreateBranch
|
|
"ShowViewAllRefsEntry" true
|
|
"ContainerClasses" .containerClasses
|
|
}}
|