Skip to content

Commit 079c45e

Browse files
committed
Add a backlink to newest for yanked crate versions
1 parent e66dbc2 commit 079c45e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/templates/crate/version.hbs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@
3737

3838
{{#if currentVersion.yanked}}
3939
<div class='crate-info'>
40-
This crate has been yanked, but it is still available for download for
41-
other crates that may be depending on it.
40+
<div>
41+
<p>This crate has been yanked, but it is still available for download for
42+
other crates that may be depending on it.</p>
43+
<p>You may wish to
44+
{{#link-to 'crate' crate}}view the newest version{{/link-to}} instead.
45+
</p>
46+
</div>
4247
</div>
4348
{{else}}
4449
<div class='crate-info'>

0 commit comments

Comments
 (0)