Skip to content

Commit 1183aad

Browse files
committed
render “crate-row” -> {{crate-row component
1 parent 8f4283f commit 1183aad

File tree

7 files changed

+18
-17
lines changed

7 files changed

+18
-17
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<div class='crate row'>
22
<div class='desc'>
33
<div class='info'>
4-
{{#link-to "crate" model}}{{ model.name }}{{/link-to}}
5-
<span class='vers small'>{{ model.max_version }}</span>
4+
{{#link-to 'crate' crate}}{{ crate.name }}{{/link-to}}
5+
<span class='vers small'>{{ crate.max_version }}</span>
66
</div>
77
<div class='summary'>
88
<span class='small'>
9-
{{ truncate-text model.description }}
9+
{{ truncate-text crate.description }}
1010
</span>
1111
</div>
1212
</div>
1313
<div class='stats'>
1414
<div class='downloads'>
1515
<img src="/assets/download.png"/>
16-
<span class='num'>{{ format-num model.downloads }}</span>
16+
<span class='num'>{{ format-num crate.downloads }}</span>
1717
</div>
1818
</div>
1919
</div>

app/templates/crate/versions.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<div class='row'>
1616
<div>
1717
{{#link-to 'crate' version}}{{ num }}{{/link-to}}
18+
1819
<span class='small'>{{ date-long created_at }}</span>
1920
{{#if yanked}}
2021
<span class='yanked'>yanked</span>

app/templates/crates.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
</div>
5353

5454
<div id='crates' class='white-rows'>
55-
{{#each this as |row|}}
56-
{{render "crate-row" row}}
55+
{{#each this as |crate|}}
56+
{{crate-row crate=crate}}
5757
{{/each}}
5858
</div>
5959

app/templates/keyword/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
<div id='crates' class='white-rows'>
4242
{{#each this as |crate|}}
43-
{{render 'crate-row' crate}}
43+
{{create-row crate=crate}}
4444
{{/each}}
4545
</div>
4646

app/templates/me/crates.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
</div>
4141

4242
<div id='crates' class='white-rows'>
43-
{{#each}}
44-
{{render "crate-row" this}}
43+
{{#each this as |crate|}}
44+
{{crate-row crate=crate}}
4545
{{/each}}
4646
</div>
4747

app/templates/me/following.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
</div>
4141

4242
<div id='crates' class='white-rows'>
43-
{{#each}}
44-
{{render "crate-row" this}}
43+
{{#each this as |crate|}}
44+
{{crate-row crate=crate}}
4545
{{/each}}
4646
</div>
4747

app/templates/search.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
</div>
2020

2121
<div id='crates' class='white-rows'>
22-
{{#each}}
23-
{{render "crate-row" this}}
22+
{{#each this as |crate|}}
23+
{{crate-row crate=crate}}
2424
{{/each}}
2525
</div>
2626

2727
<div class='pagination'>
28-
{{#link-to 'search' (query-params page=prevPage) class="prev"}}
28+
{{#link-to 'search' (query-params page=prevPage) class='prev'}}
2929
<img src="/assets/left-pag.png"/>
3030
{{/link-to}}
31-
{{#each pages}}
32-
{{#link-to 'search' (query-params page=this)}}{{ this }}{{/link-to}}
31+
{{#each pages as |page|}}
32+
{{#link-to 'search' (query-params page=this)}}{{ page }}{{/link-to}}
3333
{{/each}}
34-
{{#link-to 'search' (query-params page=nextPage) class="next"}}
34+
{{#link-to 'search' (query-params page=nextPage) class='next'}}
3535
<img src="/assets/right-pag.png"/>
3636
{{/link-to}}
3737
</div>

0 commit comments

Comments
 (0)