File tree 2 files changed +8
-14
lines changed
components/front-page-list
2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 1
- <LinkTo @ route ={{ @route }} @ model = {{ @model }} local-class =" link" ...attributes>
1
+ <a href ={{ @link.url }} local-class =" link" ...attributes {{ on " click " @ link.transitionTo }} >
2
2
<div local-class =" left" >
3
3
<div local-class =" title" >{{ @title }} </div >
4
4
{{ #if @subtitle }} <div local-class =" subtitle" >{{ @subtitle }} </div >{{ /if }}
5
5
</div >
6
6
{{ svg-jar " chevron-right" local-class =" right" }}
7
- </LinkTo >
7
+ </a >
Original file line number Diff line number Diff line change 73
73
{{ #each this.model.new_crates as |crate index |}}
74
74
<li >
75
75
<FrontPageList::Item
76
- @route =" crate"
77
- @model ={{ crate.id }}
76
+ @link ={{ link " crate" crate.id }}
78
77
@title ={{ crate.name }}
79
78
@subtitle =" v{{ crate.newest_version }} "
80
79
data-test-crate-link ={{ index }}
98
97
{{ #each this.model.most_downloaded as |crate index |}}
99
98
<li >
100
99
<FrontPageList::Item
101
- @route =" crate"
102
- @model ={{ crate.id }}
100
+ @link ={{ link " crate" crate.id }}
103
101
@title ={{ crate.name }}
104
102
data-test-crate-link ={{ index }}
105
103
/>
122
120
{{ #each this.model.just_updated as |crate index |}}
123
121
<li >
124
122
<FrontPageList::Item
125
- @route =" crate"
126
- @model ={{ crate.id }}
123
+ @link ={{ link " crate" crate.id }}
127
124
@title ={{ crate.name }}
128
125
@subtitle =" v{{ crate.newest_version }} "
129
126
data-test-crate-link ={{ index }}
147
144
{{ #each this.model.most_recently_downloaded as |crate index |}}
148
145
<li >
149
146
<FrontPageList::Item
150
- @route =" crate"
151
- @model ={{ crate.id }}
147
+ @link ={{ link " crate" crate.id }}
152
148
@title ={{ crate.name }}
153
149
data-test-crate-link ={{ index }}
154
150
/>
171
167
{{ #each this.model.popular_keywords as |keyword |}}
172
168
<li >
173
169
<FrontPageList::Item
174
- @route =" keyword"
175
- @model ={{ keyword }}
170
+ @link ={{ link " keyword" keyword }}
176
171
@title ={{ keyword.id }}
177
172
@subtitle =" {{ format-num keyword.crates_cnt }} crates"
178
173
/>
195
190
{{ #each this.model.popular_categories as |category |}}
196
191
<li >
197
192
<FrontPageList::Item
198
- @route =" category"
199
- @model ={{ category.slug }}
193
+ @link ={{ link " category" category.slug }}
200
194
@title ={{ category.category }}
201
195
@subtitle =" {{ format-num category.crates_cnt }} crates"
202
196
/>
You can’t perform that action at this time.
0 commit comments