|
1 | 1 | <div class="header-wrapper">
|
2 | 2 | {{with .Repository}}
|
3 | 3 | <div class="ui container">
|
4 |
| - <div class="ui stackable grid header-grid"> |
5 |
| - <div class="nine wide column"> |
6 |
| - <div class="ui huge breadcrumb"> |
7 |
| - <i class="mega-octicon octicon-{{if .IsPrivate}}lock{{else if .IsMirror}}repo-clone{{else if .IsFork}}repo-forked{{else}}repo{{end}}"></i> |
8 |
| - <a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a> |
9 |
| - <div class="divider"> / </div> |
10 |
| - <a href="{{$.RepoLink}}">{{.Name}}</a> |
11 |
| - {{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}} |
12 |
| - {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{$.Mirror.Address}}">{{$.Mirror.Address}}</a></div>{{end}} |
13 |
| - {{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}} |
14 |
| - </div> |
| 4 | + <div class="repo-header"> |
| 5 | + <div class="ui huge breadcrumb repo-title"> |
| 6 | + <i class="mega-octicon octicon-{{if .IsPrivate}}lock{{else if .IsMirror}}repo-clone{{else if .IsFork}}repo-forked{{else}}repo{{end}}"></i> |
| 7 | + <a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a> |
| 8 | + <div class="divider"> / </div> |
| 9 | + <a href="{{$.RepoLink}}">{{.Name}}</a> |
| 10 | + {{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}} |
| 11 | + {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{$.Mirror.Address}}">{{$.Mirror.Address}}</a></div>{{end}} |
| 12 | + {{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}} |
15 | 13 | </div>
|
16 |
| - |
17 |
| - <div class="ui seven wide right aligned column"> |
18 |
| - <div class="ui compact labeled button" tabindex="0"> |
19 |
| - <a class="ui compact button" href="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}"> |
| 14 | + <div class="repo-buttons"> |
| 15 | + <div class="ui labeled button" tabindex="0"> |
| 16 | + <a class="ui compact basic button" href="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}"> |
20 | 17 | <i class="icon fa-eye{{if not $.IsWatchingRepo}}-slash{{end}}"></i>{{if $.IsWatchingRepo}}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{$.i18n.Tr "repo.watch"}}{{end}}
|
21 | 18 | </a>
|
22 | 19 | <a class="ui basic label" href="{{.Link}}/watchers">
|
23 | 20 | {{.NumWatches}}
|
24 | 21 | </a>
|
25 | 22 | </div>
|
26 |
| - <div class="ui compact labeled button" tabindex="0"> |
27 |
| - <a class="ui compact button" href="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}un{{end}}star?redirect_to={{$.Link}}"> |
| 23 | + <div class="ui labeled button" tabindex="0"> |
| 24 | + <a class="ui compact basic button" href="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}un{{end}}star?redirect_to={{$.Link}}"> |
28 | 25 | <i class="icon star{{if not $.IsStaringRepo}} outline{{end}}"></i>{{if $.IsStaringRepo}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{$.i18n.Tr "repo.star"}}{{end}}
|
29 | 26 | </a>
|
30 | 27 | <a class="ui basic label" href="{{.Link}}/stars">
|
31 | 28 | {{.NumStars}}
|
32 | 29 | </a>
|
33 | 30 | </div>
|
34 | 31 | {{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
|
35 |
| - <div class="ui compact labeled button" tabindex="0"> |
36 |
| - <a class="ui compact button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny"> |
| 32 | + <div class="ui labeled button" tabindex="0"> |
| 33 | + <a class="ui compact basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny"> |
37 | 34 | <i class="octicon octicon-repo-forked"></i>{{$.i18n.Tr "repo.fork"}}
|
38 | 35 | </a>
|
39 | 36 | <a class="ui basic label" href="{{.Link}}/forks">
|
|
0 commit comments