File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 25
25
{{$.CsrfTokenHtml}}
26
26
<div class="ui labeled button" tabindex="0">
27
27
<button type="submit" class="ui compact basic button">
28
- <i class="icon fa-eye {{if not $.IsWatchingRepo}}-slash{{end}}"></i>{{if $.IsWatchingRepo }}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{$.i18n.Tr "repo.watch"}}{{end}}
28
+ {{if $.IsWatchingRepo}}{{svg "octicon-eye-closed" 16 }}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{svg "octicon-eye" 16 }}{{$.i18n.Tr "repo.watch"}}{{end}}
29
29
</button>
30
30
<a class="ui basic label" href="{{.Link}}/watchers">
31
31
{{.NumWatches}}
36
36
{{$.CsrfTokenHtml}}
37
37
<div class="ui labeled button" tabindex="0">
38
38
<button type="submit" class="ui compact basic button">
39
- <i class="icon star{{if not $.IsStaringRepo}} outline{{end}}"></i>{{if $.IsStaringRepo}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{$.i18n.Tr "repo.star"}}{{end}}
39
+ <!-- TODO use star-filled once octicons v2 are in place */ -->
40
+ {{if $.IsStaringRepo}}{{svg "octicon-star" 16}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{svg "octicon-star" 16}}{{$.i18n.Tr "repo.star"}}{{end}}
40
41
</button>
41
42
<a class="ui basic label" href="{{.Link}}/stars">
42
43
{{.NumStars}}
46
47
{{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
47
48
<div class="ui labeled button {{if and ($.IsSigned) (not $.CanSignedUserFork)}}disabled-repo-button{{end}}" tabindex="0">
48
49
<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" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny">
49
- {{svg "octicon-repo-forked" 15 }}{{$.i18n.Tr "repo.fork"}}
50
+ {{svg "octicon-repo-forked" 16 }}{{$.i18n.Tr "repo.fork"}}
50
51
</a>
51
52
<a class="ui basic label" href="{{.Link}}/forks">
52
53
{{.NumForks}}
Original file line number Diff line number Diff line change 32
32
white-space : nowrap ;
33
33
}
34
34
35
- .svg.octicon- repo-forked {
36
- margin-top : -1 px ;
35
+ .repo-buttons .svg {
36
+ margin : 0 .42857143 em 0 -.21428571 em ;
37
37
}
38
38
39
39
.button {
You can’t perform that action at this time.
0 commit comments