Skip to content

Commit 1e37872

Browse files
committed
Tweak crate.versions so route file isn't necessary
1 parent 3743905 commit 1e37872

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

app/routes/crate/versions.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/templates/crate/versions.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<div class='all-versions-back'>
2-
{{#link-to 'crate' crate}}&#11013; Back to Main Page{{/link-to}}
2+
{{#link-to 'crate' model}}&#11013; Back to Main Page{{/link-to}}
33
</div>
44

55
<div class='info'>
66
<span class='small'>
7-
All <span class='num'>{{ model.length }}</span>
8-
versions of <span class='num'>{{ crate.name }}</span> since
9-
{{moment-format crate.created_at 'LL'}}
7+
All <span class='num'>{{ model.versions.length }}</span>
8+
versions of <span class='num'>{{ model.name }}</span> since
9+
{{moment-format model.created_at 'LL'}}
1010
</span>
1111
</div>
1212

1313
<div id='crate-all-versions' class='white-rows'>
14-
{{#each model as |version|}}
14+
{{#each model.versions as |version|}}
1515
<div class='row'>
1616
<div>
1717
{{#link-to 'crate.version' version.num}}{{ version.num }}{{/link-to}}

0 commit comments

Comments
 (0)