Skip to content

Commit 471a2a6

Browse files
committed
Even fewer crate versions on home page
1 parent 11327ae commit 471a2a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/templates/index.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div id='home-crates' class='crate-lists'>
3939
<section id='new-crates' data-test-new-crates aria-busy="{{dataTask.isRunning}}">
4040
<h2>New Crates</h2>
41-
{{crate-list-max crates=model.new_crates}}
41+
{{crate-list-name-only crates=model.new_crates}}
4242
</section>
4343
<section id='most-downloaded' data-test-most-downloaded aria-busy="{{dataTask.isRunning}}">
4444
<h2>Most Downloaded</h2>
@@ -50,7 +50,7 @@
5050
</section>
5151
<section id='most-recently-downloaded' data-test-most-recently-downloaded aria-busy="{{dataTask.isRunning}}">
5252
<h2>Most Recent Downloads</h2>
53-
{{crate-list-max crates=model.most_recently_downloaded}}
53+
{{crate-list-name-only crates=model.most_recently_downloaded}}
5454
</section>
5555
<section id='keywords' data-test-keywords aria-busy="{{dataTask.isRunning}}">
5656
<h2>Popular Keywords {{#link-to 'keywords'}}(see all){{/link-to}}</h2>

tests/acceptance/front-page-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module('Acceptance | front page', function(hooks) {
3535
assert.dom('[data-test-total-downloads]').hasText('122,669');
3636
assert.dom('[data-test-total-crates]').hasText('19');
3737

38-
assert.dom('[data-test-new-crates] [data-test-crate-link="0"]').hasText('Inflector (0.1.6)');
38+
assert.dom('[data-test-new-crates] [data-test-crate-link="0"]').hasText('Inflector');
3939
assert.dom('[data-test-new-crates] [data-test-crate-link="0"]').hasAttribute('href', '/crates/Inflector');
4040

4141
assert.dom('[data-test-most-downloaded] [data-test-crate-link="0"]').hasText('serde');

0 commit comments

Comments
 (0)