Skip to content

Commit ac44d90

Browse files
committed
fix lint
1 parent 3720d0e commit ac44d90

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

templates/repo/home.tmpl

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@
3232

3333
<div class="repo-button-row" data-is-homepage="{{$isHomepage}}">
3434
<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+
}}
5252
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
5353
{{$cmpBranch := ""}}
5454
{{if ne .Repository.ID .BaseRepo.ID}}

0 commit comments

Comments
 (0)