Skip to content

Commit

Permalink
LinkToDep: Convert to template-only component
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Mar 20, 2020
1 parent 5134195 commit 8144cb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions app/components/link-to-dep.js

This file was deleted.

8 changes: 4 additions & 4 deletions app/templates/crate/version.hbs
Expand Up @@ -206,7 +206,7 @@
<h3>Dependencies</h3>
<ul>
{{#each this.currentDependencies as |dep|}}
<LinkToDep @tagName="li" @dep={{dep}} />
<li><LinkToDep @dep={{dep}} /></li>
{{else}}
{{#if (is-pending this.currentDependencies)}}
<li>Loading…</li>
Expand All @@ -222,7 +222,7 @@
<h3>Build-Dependencies</h3>
<ul>
{{#each this.currentBuildDependencies as |dep|}}
<LinkToDep @tagName="li" @dep={{dep}} />
<li><LinkToDep @dep={{dep}} /></li>
{{/each}}
</ul>
</div>
Expand All @@ -233,7 +233,7 @@
<h3>Dev-Dependencies</h3>
<ul>
{{#each this.currentDevDependencies as |dep|}}
<LinkToDep @tagName="li" @dep={{dep}} />
<li><LinkToDep @dep={{dep}} /></li>
{{/each}}
</ul>
</div>
Expand All @@ -251,7 +251,7 @@
Stats Overview for {{this.downloadsContext.num}}
<LinkTo @route="crate" @model={{this.crate}}>(see all)</LinkTo>
</h3>

{{else}}
<h3 data-test-crate-stats-label>Stats Overview</h3>
{{/if}}
Expand Down

0 comments on commit 8144cb7

Please sign in to comment.