|
5 | 5 | <div class="ui huge breadcrumb repo-title">
|
6 | 6 | {{if .RelAvatarLink}}
|
7 | 7 | <img class="ui avatar image" src="{{.RelAvatarLink}}">
|
8 |
| - {{else if .IsTemplate}} |
9 |
| - {{if .IsPrivate}} |
10 |
| - {{svg "octicon-repo-template-private" 32}} |
11 |
| - {{else}} |
12 |
| - {{svg "octicon-repo-template" 32}} |
13 |
| - {{end}} |
14 | 8 | {{else}}
|
15 |
| - {{if .IsPrivate}} |
16 |
| - {{svg "octicon-lock" 32}} |
17 |
| - {{else if and (not .IsMirror) (not .IsFork) (.Owner)}} |
18 |
| - {{if .Owner.Visibility.IsPrivate}} |
19 |
| - {{svg "octicon-internal-repo" 32}} |
20 |
| - {{else}} |
21 |
| - {{svg "octicon-repo" 32}} |
22 |
| - {{end}} |
23 |
| - {{else if .IsMirror}} |
24 |
| - {{svg "octicon-repo-clone" 32}} |
25 |
| - {{else if .IsFork}} |
26 |
| - {{svg "octicon-repo-forked" 32}} |
27 |
| - {{else}} |
28 |
| - {{svg "octicon-repo" 32}} |
29 |
| - {{end}} |
| 9 | + {{template "repo/header_icon" .}} |
30 | 10 | {{end}}
|
31 | 11 | <a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a>
|
32 | 12 | <div class="divider"> / </div>
|
33 | 13 | <a href="{{$.RepoLink}}">{{.Name}}</a>
|
34 | 14 | {{if .RelAvatarLink}}
|
35 |
| - {{if .IsTemplate}} |
36 |
| - {{if .IsPrivate}} |
37 |
| - {{svg "octicon-repo-template-private" 32}} |
38 |
| - {{else}} |
39 |
| - {{svg "octicon-repo-template" 32}} |
40 |
| - {{end}} |
41 |
| - {{else}} |
42 |
| - {{if .IsPrivate}} |
43 |
| - {{svg "octicon-lock" 32}} |
44 |
| - {{else if .IsMirror}} |
45 |
| - {{svg "octicon-repo-clone" 32}} |
46 |
| - {{else if .IsFork}} |
47 |
| - {{svg "octicon-repo-forked" 32}} |
48 |
| - {{else}} |
49 |
| - {{svg "octicon-repo" 32}} |
50 |
| - {{end}} |
51 |
| - {{end}} |
| 15 | + {{template "repo/header_icon" .}} |
52 | 16 | {{end}}
|
53 | 17 | {{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}}
|
54 | 18 | {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}">{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}</a></div>{{end}}
|
|
0 commit comments