File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 64
64
<div class="repo-button-row gt-df gt-ac gt-sb gt-fw">
65
65
<div class="gt-df gt-ac gt-fw gt-gap-y-3">
66
66
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
67
- {{$n := len .TreeNames}}
68
- {{$l := Eval $n "-" 1}}
69
- <!-- If home page, show new pr. If not, show breadcrumb -->
70
- {{if and (eq $n 0) .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
67
+ {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
71
68
{{$cmpBranch := ""}}
72
69
{{if ne .Repository.ID .BaseRepo.ID}}
73
70
{{$cmpBranch = printf "%s/%s:" (.Repository.OwnerName|PathEscape) (.Repository.Name|PathEscape)}}
79
76
{{svg "octicon-git-pull-request"}}
80
77
</a>
81
78
{{end}}
79
+ <!-- Show go to file and breadcrumbs if not on home page -->
80
+ {{$n := len .TreeNames}}
81
+ {{$l := Eval $n "-" 1}}
82
82
{{if eq $n 0}}
83
83
<a href="{{.Repository.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button">{{.locale.Tr "repo.find_file.go_to_file"}}</a>
84
84
{{end}}
You can’t perform that action at this time.
0 commit comments