|
11 | 11 | {{if .PullRequestCtx.Allowed}} |
12 | 12 | <div class="fitted item"> |
13 | 13 | <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{if .SignedUser.HasForkedRepo .BaseRepo.ID }}{{.SignedUser.Name}}:{{end}}{{.BranchName}}"> |
14 | | - <button class="ui green small button"><i class="octicon octicon-git-compare"></i></button> |
| 14 | + <button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button> |
15 | 15 | </a> |
16 | 16 | </div> |
17 | 17 | {{end}} |
18 | 18 | {{template "repo/branch_dropdown" .}} |
19 | | - <div class="fitted item"> |
20 | | - <span class="ui breadcrumb"> |
21 | | - <a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{EllipsisString .Repository.Name 30}}</a> |
22 | | - {{ $n := len .TreeNames}} |
23 | | - {{ $l := Subtract $n 1}} |
24 | | - {{range $i, $v := .TreeNames}} |
25 | | - <span class="divider"> / </span> |
26 | | - {{if eq $i $l}} |
27 | | - <span class="active section">{{EllipsisString $v 30}}</span> |
28 | | - {{else}} |
29 | | - {{ $p := index $.Paths $i}} |
30 | | - <span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 30}}</a></span> |
31 | | - {{end}} |
32 | | - {{end}} |
33 | | - </span> |
34 | | - </div> |
| 19 | + {{ $n := len .TreeNames}} |
| 20 | + {{ $l := Subtract $n 1}} |
| 21 | + <div class="fitted item"><span class="ui breadcrumb repo-path"><a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{EllipsisString .Repository.Name 30}}</a>{{range $i, $v := .TreeNames}}<span class="divider">/</span>{{if eq $i $l}}<span class="active section">{{EllipsisString $v 30}}</span>{{else}}{{ $p := index $.Paths $i}}<span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 30}}</a></span>{{end}}{{end}}</span></div> |
35 | 22 | <div class="right fitted item"> |
36 | 23 | {{if .Repository.CanEnableEditor}} |
37 | 24 | <div id="file-buttons" class="ui tiny blue buttons"> |
|
48 | 35 | </div> |
49 | 36 | {{end}} |
50 | 37 |
|
51 | | - <!-- Only show colne panel in repository home page --> |
| 38 | + <!-- Only show clone panel in repository home page --> |
52 | 39 | {{if eq $n 0}} |
53 | | - <div class="ui action small input" id="clone-panel"> |
| 40 | + <div class="ui action tiny input" id="clone-panel"> |
54 | 41 | {{if not $.DisableHTTP}} |
55 | 42 | <button class="ui basic clone button" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}"> |
56 | 43 | {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}} |
|
0 commit comments