File tree 6 files changed +29
-32
lines changed
6 files changed +29
-32
lines changed Original file line number Diff line number Diff line change 49
49
{{$isMember := .IsOrganizationMember}}
50
50
{{range .Members}}
51
51
{{if or $isMember (call $.IsPublicMember .ID)}}
52
- <a href="{{.HomeLink}}" title="{{.Name}}{{if .FullName}} ({{.FullName}}){{end}}">
53
- {{avatar $.Context .}}
54
- </a>
52
+ <a href="{{.HomeLink}}" title="{{.Name}}{{if .FullName}} ({{.FullName}}){{end}}">{{avatar $.Context . 48}}</a>
55
53
{{end}}
56
54
{{end}}
57
55
</div>
Original file line number Diff line number Diff line change 8
8
{{range .Members}}
9
9
<div class="item ui grid">
10
10
<div class="ui four wide column" style="display: flex;">
11
- {{ avatar $.Context . 48}}
11
+ <a href="{{.HomeLink}}">{{ avatar $.Context . 48}}</a>
12
12
<div>
13
13
<div class="meta"><a href="{{.HomeLink}}">{{.Name}}</a></div>
14
14
<div class="meta">{{.FullName}}</div>
55
55
{{end}}
56
56
</div>
57
57
{{end}}
58
- <div class="ui three wide column">
58
+ <div class="ui three wide column gt-df gt-ac gt-je ">
59
59
<div class="text right">
60
60
{{if eq $.SignedUser.ID .ID}}
61
61
<form>
Original file line number Diff line number Diff line change 25
25
{{end}}
26
26
<div class="ui bottom attached table segment members">
27
27
{{range .Team.Members}}
28
- <div class="item">
28
+ <div class="item gt-df gt-ac gt-fw">
29
+ <a href="{{.HomeLink}}">{{avatar $.Context . 48 "gt-mr-3 gt-mb-0"}}</a>
30
+ <a class="gt-f1" href="{{.HomeLink}}">
31
+ <strong>{{.DisplayName}}</strong>
32
+ </a>
29
33
{{if and $.IsOrganizationOwner (not (and ($.Team.IsOwnerTeam) (eq (len $.Team.Members) 1)))}}
30
34
<form>
31
- <button class="ui red button delete-button right " data-modal-id="remove-team-member"
35
+ <button class="ui red button delete-button" data-modal-id="remove-team-member"
32
36
data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/remove" data-datauid="{{.ID}}"
33
37
data-name="{{.DisplayName}}"
34
38
data-data-team-name="{{$.Team.Name}}">{{$.locale.Tr "org.members.remove"}}</button>
35
39
</form>
36
40
{{end}}
37
- <a href="{{.HomeLink}}">
38
- {{avatar $.Context .}}
39
- {{.DisplayName}}
40
- </a>
41
41
</div>
42
42
{{else}}
43
43
<div class="item">
Original file line number Diff line number Diff line change 1
- <div class="ui top attached tabular menu">
1
+ <div class="ui top attached tabular menu org-team-navbar ">
2
2
<a class="item{{if .PageIsOrgTeamMembers}} active{{end}}" href="{{.OrgLink}}/teams/{{.Team.LowerName | PathEscape}}">{{svg "octicon-person"}} <strong>{{.Team.NumMembers}}</strong> {{$.locale.Tr "org.lower_members"}}</a>
3
3
<a class="item{{if .PageIsOrgTeamRepos}} active{{end}}" href="{{.OrgLink}}/teams/{{.Team.LowerName | PathEscape}}/repositories">{{svg "octicon-repo"}} <strong>{{.Team.NumRepos}}</strong> {{$.locale.Tr "org.lower_repositories"}}</a>
4
4
</div>
Original file line number Diff line number Diff line change 33
33
{{end}}
34
34
<div class="ui bottom attached table segment repositories">
35
35
{{range .Team.Repos}}
36
- <div class="item">
36
+ <div class="item gt-df gt-ac gt-fw">
37
+ {{if .IsPrivate}}
38
+ {{svg "octicon-lock" 16 "gt-mr-3"}}
39
+ {{else if .IsFork}}
40
+ {{svg "octicon-repo-forked" 16 "gt-mr-3"}}
41
+ {{else if .IsMirror}}
42
+ {{svg "octicon-mirror" 16 "gt-mr-3"}}
43
+ {{else}}
44
+ {{svg "octicon-repo" 16 "gt-mr-3"}}
45
+ {{end}}
46
+ <a class="member gt-f1" href="{{$.Org.HomeLink}}/{{.Name | PathEscape}}">
47
+ <strong>{{$.Org.Name}}/{{.Name}}</strong>
48
+ </a>
37
49
{{if $canAddRemove}}
38
50
<form method="post" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/remove">
39
51
{{$.CsrfTokenHtml}}
40
52
<button type="submit" class="ui red small button right" name="repoid" value="{{.ID}}">{{$.locale.Tr "remove"}}</button>
41
53
</form>
42
54
{{end}}
43
- <a class="member" href="{{$.Org.HomeLink}}/{{.Name | PathEscape}}">
44
- {{if .IsPrivate}}
45
- {{svg "octicon-lock"}}
46
- {{else if .IsFork}}
47
- {{svg "octicon-repo-forked"}}
48
- {{else if .IsMirror}}
49
- {{svg "octicon-mirror"}}
50
- {{else}}
51
- {{svg "octicon-repo"}}
52
- {{end}}
53
- <strong>{{$.Org.Name}}/{{.Name}}</strong>
54
- </a>
55
55
</div>
56
56
{{else}}
57
57
<div class="item">
Original file line number Diff line number Diff line change 156
156
padding : 10px 15px ;
157
157
}
158
158
159
- .organization .teams .members a : hover ,
160
- .organization .profile .members a : hover {
161
- text-decoration : none;
162
- }
163
-
164
159
.organization .teams .members .ui .avatar ,
165
160
.organization .profile .members .ui .avatar {
166
161
width : 48px ;
218
213
219
214
.organization .teams .repositories .item ,
220
215
.organization .teams .members .item {
221
- padding : 10px 20px ;
222
- line-height : 32px ;
216
+ padding : 10px 19px ;
223
217
}
224
218
225
219
.organization .teams .repositories .item : not (: last-child ),
230
224
.organization .teams .repositories .item .button ,
231
225
.organization .teams .members .item .button {
232
226
padding : 9px 10px ;
227
+ margin : 0 ;
233
228
}
234
229
235
230
.organization .teams # add-repo-form input ,
248
243
.organization .teams # repo-top-segment {
249
244
height : 60px ;
250
245
}
246
+
247
+ .org-team-navbar .active .item {
248
+ background : var (--color-box-body ) !important ;
249
+ }
You can’t perform that action at this time.
0 commit comments