File tree Expand file tree Collapse file tree 4 files changed +31
-32
lines changed Expand file tree Collapse file tree 4 files changed +31
-32
lines changed Original file line number Diff line number Diff line change 84
84
85
85
<div >
86
86
<h3 >Owners</h3 >
87
-
88
- <ul local-class =' owners' data-test-owners>
89
- {{ #each @crate.owner_team as |team |}}
90
- <li >
91
- <LinkTo @route ={{ team.kind }} @model ={{ team.login }} data-test-team-link ={{ team.login }} >
92
- <UserAvatar @user ={{ team }} @size =" medium-small" />
93
- </LinkTo >
94
- </li >
95
- {{ /each }}
96
-
97
- {{ #each @crate.owner_user as |user |}}
98
- <li >
99
- <LinkTo @route ={{ user.kind }} @model ={{ user.login }} data-test-user-link ={{ user.login }} >
100
- <UserAvatar @user ={{ user }} @size =" medium-small" />
101
- </LinkTo >
102
- </li >
103
- {{ /each }}
104
- </ul >
87
+ <OwnersList @teams ={{ @crate.owner_team }} @users ={{ @crate.owner_user }} />
105
88
</div >
106
89
</div >
107
90
110
93
{{ #if @crate.categories }}
111
94
<div >
112
95
<h3 >Categories</h3 >
113
- <ul >
96
+ <ul local-class = " categories " >
114
97
{{ #each @crate.categories as |category |}}
115
98
<li ><LinkTo @route =" category" @model ={{ category.slug }} >{{ category.category }} </LinkTo ></li >
116
99
{{ /each }}
Original file line number Diff line number Diff line change 10
10
flex-direction : column;
11
11
}
12
12
13
- ul {
13
+ . categories {
14
14
padding-left : 20px ;
15
15
}
16
16
}
103
103
}
104
104
}
105
105
106
- ul .owners {
107
- display : flex;
108
- flex-wrap : wrap;
109
- list-style : none;
110
- padding : 0 ;
111
- margin : 0 ;
112
-
113
- li {
114
- margin : 0 7px 7px 0 ;
115
- }
116
- }
117
-
118
106
.more-versions-link ,
119
107
.reverse-deps-link {
120
108
composes : small from '../styles/shared/typography.module.css' ;
Original file line number Diff line number Diff line change
1
+ <ul local-class =' owners' data-test-owners>
2
+ {{ #each @teams as |team |}}
3
+ <li >
4
+ <LinkTo @route ={{ team.kind }} @model ={{ team.login }} data-test-team-link ={{ team.login }} >
5
+ <UserAvatar @user ={{ team }} @size =" medium-small" />
6
+ </LinkTo >
7
+ </li >
8
+ {{ /each }}
9
+
10
+ {{ #each @users as |user |}}
11
+ <li >
12
+ <LinkTo @route ={{ user.kind }} @model ={{ user.login }} data-test-user-link ={{ user.login }} >
13
+ <UserAvatar @user ={{ user }} @size =" medium-small" />
14
+ </LinkTo >
15
+ </li >
16
+ {{ /each }}
17
+ </ul >
Original file line number Diff line number Diff line change
1
+ .owners {
2
+ display : flex;
3
+ flex-wrap : wrap;
4
+ list-style : none;
5
+ padding : 0 ;
6
+ margin : 0 ;
7
+
8
+ li {
9
+ margin : 0 7px 7px 0 ;
10
+ }
11
+ }
You can’t perform that action at this time.
0 commit comments