File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6464 <div class="repo-button-row gt-df gt-ac gt-sb gt-fw">
6565 <div class="gt-df gt-ac gt-fw gt-gap-y-3">
6666 {{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)}}
7168 {{$cmpBranch := ""}}
7269 {{if ne .Repository.ID .BaseRepo.ID}}
7370 {{$cmpBranch = printf "%s/%s:" (.Repository.OwnerName|PathEscape) (.Repository.Name|PathEscape)}}
7976 {{svg "octicon-git-pull-request"}}
8077 </a>
8178 {{end}}
79+ <!-- Show go to file and breadcrumbs if not on home page -->
80+ {{$n := len .TreeNames}}
81+ {{$l := Eval $n "-" 1}}
8282 {{if eq $n 0}}
8383 <a href="{{.Repository.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button">{{.locale.Tr "repo.find_file.go_to_file"}}</a>
8484 {{end}}
You can’t perform that action at this time.
0 commit comments