|
3 | 3 | <div class="ui container">
|
4 | 4 | <div class="repo-header">
|
5 | 5 | <div class="flex-item gt-ac">
|
6 |
| - <div class="flex-item-leading">{{template "repo/icon" .}}</div> |
| 6 | + <div class="flex-item-leading"> |
| 7 | + {{template "repo/icon" .}} |
| 8 | + </div> |
7 | 9 | <div class="flex-item-main">
|
8 | 10 | <div class="flex-item-title gt-font-18">
|
9 |
| - <a class="muted gt-font-normal" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/ |
10 |
| - <a class="muted" href="{{$.RepoLink}}">{{.Name}}</a></div> |
| 11 | + <a class="muted gt-font-normal" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/<a class="muted" href="{{$.RepoLink}}">{{.Name}}</a> |
| 12 | + </div> |
11 | 13 | </div>
|
12 | 14 | <div class="flex-item-trailing">
|
13 | 15 | {{if .IsArchived}}
|
14 |
| - <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.archived"}}</span> |
15 |
| - <div class="repo-icon" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.archived"}}">{{svg "octicon-archive" 18}}</div> |
| 16 | + <span class="ui basic label not-mobile">{{ctx.Locale.Tr "repo.desc.archived"}}</span> |
| 17 | + <div class="repo-icon only-mobile" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.archived"}}">{{svg "octicon-archive" 18}}</div> |
16 | 18 | {{end}}
|
17 | 19 | {{if .IsPrivate}}
|
18 |
| - <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.private"}}</span> |
19 |
| - <div class="repo-icon" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.private"}}">{{svg "octicon-lock" 18}}</div> |
| 20 | + <span class="ui basic label not-mobile">{{ctx.Locale.Tr "repo.desc.private"}}</span> |
| 21 | + <div class="repo-icon only-mobile" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.private"}}">{{svg "octicon-lock" 18}}</div> |
20 | 22 | {{else}}
|
21 | 23 | {{if .Owner.Visibility.IsPrivate}}
|
22 |
| - <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.internal"}}</span> |
23 |
| - <div class="repo-icon" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.internal"}}">{{svg "octicon-shield-lock" 18}}</div> |
| 24 | + <span class="ui basic label not-mobile">{{ctx.Locale.Tr "repo.desc.internal"}}</span> |
| 25 | + <div class="repo-icon only-mobile" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.internal"}}">{{svg "octicon-shield-lock" 18}}</div> |
24 | 26 | {{end}}
|
25 | 27 | {{end}}
|
26 | 28 | {{if .IsTemplate}}
|
27 |
| - <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.template"}}</span> |
28 |
| - <div class="repo-icon" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.template"}}">{{svg "octicon-repo-template" 18}}</div> |
| 29 | + <span class="ui basic label not-mobile">{{ctx.Locale.Tr "repo.desc.template"}}</span> |
| 30 | + <div class="repo-icon only-mobile" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.template"}}">{{svg "octicon-repo-template" 18}}</div> |
29 | 31 | {{end}}
|
30 | 32 | {{if eq .ObjectFormatName "sha256"}}
|
31 | 33 | <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.sha256"}}</span>
|
|
76 | 78 | <a class="ui compact{{if $.ShowForkModal}} show-modal{{end}} small basic button"
|
77 | 79 | {{if not $.CanSignedUserFork}}
|
78 | 80 | {{if gt (len $.UserAndOrgForks) 1}}
|
79 |
| - data-modal="#fork-repo-modal" |
| 81 | + href="#" data-modal="#fork-repo-modal" |
80 | 82 | {{else if eq (len $.UserAndOrgForks) 1}}
|
81 | 83 | href="{{AppSubUrl}}/{{(index $.UserAndOrgForks 0).FullName}}"
|
82 | 84 | {{/*else is not required here, because the button shouldn't link to any site if you can't create a fork*/}}
|
83 | 85 | {{end}}
|
84 | 86 | {{else if not $.UserAndOrgForks}}
|
85 | 87 | href="{{$.RepoLink}}/fork"
|
86 | 88 | {{else}}
|
87 |
| - data-modal="#fork-repo-modal" |
| 89 | + href="#" data-modal="#fork-repo-modal" |
88 | 90 | {{end}}
|
89 | 91 | >
|
90 |
| - {{svg "octicon-repo-forked"}}<span class="text">{{ctx.Locale.Tr "repo.fork"}}</span> |
| 92 | + {{svg "octicon-repo-forked"}}<span class="text not-mobile">{{ctx.Locale.Tr "repo.fork"}}</span> |
91 | 93 | </a>
|
92 | 94 | <div class="ui small modal" id="fork-repo-modal">
|
93 | 95 | <div class="header">
|
|
0 commit comments