File tree Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,3 @@ div.header {
273
273
.yanked {
274
274
composes : yanked from '../shared/typography.module.css' ;
275
275
}
276
-
277
- .version {
278
- padding : 4px 0 ;
279
- }
Original file line number Diff line number Diff line change 37
37
.arrow {
38
38
display : inline-block;
39
39
float : right;
40
- margin-left : 8px ;
41
40
42
41
svg {
43
42
background : # EEECDD ;
Original file line number Diff line number Diff line change 6
6
{{ svg-jar " crate" local-class =' crate-icon' }}
7
7
<h1 data-test-crate-name>{{ this.crate.name }} </h1 >
8
8
<h2 data-test-crate-version>{{ this.currentVersion.num }} </h2 >
9
+ {{ #if this.isOwner }}
10
+ <YankButton @version ={{ this.currentVersion }} />
11
+ {{ /if }}
9
12
</div >
10
13
11
14
{{ #if this.session.currentUser }}
163
166
<h3 >Versions</h3 >
164
167
<ul >
165
168
{{ #each this.smallSortedVersions as |version |}}
166
- <li local-class = " version " >
169
+ <li >
167
170
<LinkTo @route =" crate.version" @model ={{ version.num }} data-test-version-link ={{ version.num }} >
168
171
{{ version.num }}
169
172
</LinkTo >
170
173
{{ moment-format version.created_at ' ll' }}
171
- {{ #if this.isOwner }}
172
- <YankButton @version ={{ version }} />
173
- {{ else }}
174
- {{ #if version.yanked }}
175
- <span local-class =' yanked' >yanked</span >
176
- {{ /if }}
174
+ {{ #if version.yanked }}
175
+ <span local-class =' yanked' >yanked</span >
177
176
{{ /if }}
178
177
</li >
179
178
{{ /each }}
Original file line number Diff line number Diff line change 17
17
<span local-class =' yanked' >yanked</span >
18
18
{{ /if }}
19
19
</div >
20
- <div >
21
- {{ #if this.isOwner }}
22
- <YankButton @version ={{ version }} />
23
- {{ /if }}
20
+ {{ #if this.isOwner }}
21
+ <YankButton @version ={{ version }} />
22
+ {{ else }}
24
23
<LinkTo @route =" crate.version" @model ={{ version.num }} local-class =" arrow" >
25
24
{{ svg-jar " right-arrow" }}
26
25
</LinkTo >
27
- </ div >
26
+ {{ /if }}
28
27
</div >
29
28
{{ /each }}
30
29
</div >
You can’t perform that action at this time.
0 commit comments