|
32 | 32 |
|
33 | 33 | <div class="repo-button-row" data-is-homepage="{{$isHomepage}}"> |
34 | 34 | <div class="repo-button-row-left"> |
35 | | - {{$branchDropdownCurrentRefType := "branch"}} |
36 | | - {{$branchDropdownCurrentRefShortName := .BranchName}} |
37 | | - {{if .IsViewTag}} |
38 | | - {{$branchDropdownCurrentRefType = "tag"}} |
39 | | - {{$branchDropdownCurrentRefShortName = .TagName}} |
40 | | - {{end}} |
41 | | - {{template "repo/branch_dropdown" dict |
42 | | - "Repository" .Repository |
43 | | - "ShowTabBranches" true |
44 | | - "ShowTabTags" true |
45 | | - "CurrentRefType" $branchDropdownCurrentRefType |
46 | | - "CurrentRefShortName" $branchDropdownCurrentRefShortName |
47 | | - "CurrentTreePath" .TreePath |
48 | | - "RefLinkTemplate" "{RepoLink}/src/{RefType}/{RefShortName}/{TreePath}" |
49 | | - "AllowCreateNewRef" .CanCreateBranch |
50 | | - "ShowViewAllRefsEntry" true |
51 | | - }} |
| 35 | + {{$branchDropdownCurrentRefType := "branch"}} |
| 36 | + {{$branchDropdownCurrentRefShortName := .BranchName}} |
| 37 | + {{if .IsViewTag}} |
| 38 | + {{$branchDropdownCurrentRefType = "tag"}} |
| 39 | + {{$branchDropdownCurrentRefShortName = .TagName}} |
| 40 | + {{end}} |
| 41 | + {{template "repo/branch_dropdown" dict |
| 42 | + "Repository" .Repository |
| 43 | + "ShowTabBranches" true |
| 44 | + "ShowTabTags" true |
| 45 | + "CurrentRefType" $branchDropdownCurrentRefType |
| 46 | + "CurrentRefShortName" $branchDropdownCurrentRefShortName |
| 47 | + "CurrentTreePath" .TreePath |
| 48 | + "RefLinkTemplate" "{RepoLink}/src/{RefType}/{RefShortName}/{TreePath}" |
| 49 | + "AllowCreateNewRef" .CanCreateBranch |
| 50 | + "ShowViewAllRefsEntry" true |
| 51 | + }} |
52 | 52 | {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}} |
53 | 53 | {{$cmpBranch := ""}} |
54 | 54 | {{if ne .Repository.ID .BaseRepo.ID}} |
|
0 commit comments