Skip to content

Commit 1337136

Browse files
committed
Move optional tag into the link-to-dep definition
1 parent cb01c1d commit 1337136

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/templates/components/link-to-dep.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
{{#link-to 'crate' dep.crate_id}}
33
{{ dep.crate_id }} {{ format-req dep.req }}
44
{{/link-to}}
5+
{{#if dep.optional}}
6+
<span class='optional'>optional</span>
7+
{{/if}}
58
</li>

app/templates/crate/version.hbs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@
137137
<ul>
138138
{{#each currentDependencies as |dep|}}
139139
{{link-to-dep dep=dep}}
140-
{{#if dep.optional}}
141-
<span class='optional'>optional</span>
142-
{{/if}}
143140
{{else}}
144141
<li>None</li>
145142
{{/each}}

0 commit comments

Comments
 (0)