Skip to content

Commit cb01c1d

Browse files
committed
Show which dependencies are optional
1 parent 8e60347 commit cb01c1d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

app/styles/app.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ span.small {
146146
}
147147
}
148148

149+
.optional {
150+
font-size: 80%;
151+
}
152+
149153
.yanked {
150154
font-size: 80%;
151155
color: rgb(166, 0, 0)

app/templates/crate/version.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@
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}}
140143
{{else}}
141144
<li>None</li>
142145
{{/each}}

0 commit comments

Comments
 (0)