Skip to content

Commit 036e953

Browse files
committed
crate.version: Show "missing readme" message instead of duplicate crate description
The description is already shown in the header now
1 parent cdf4329 commit 036e953

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

app/styles/crate/version.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
margin-bottom: 20px;
3232
}
3333

34-
.readme-spinner {
34+
.readme-spinner,
35+
.no-readme {
3536
padding: 40px 15px;
3637
text-align: center;
3738
font-size: 20px;

app/templates/crate/version.hbs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@
2323
<RenderedHtml @html={{this.readme}} local-class="readme" />
2424
</article>
2525
{{else}}
26-
{{#if this.crate.description}}
27-
<div local-class='about'>
28-
<h3>About This Package</h3>
29-
<p>{{ this.crate.description }}</p>
30-
</div>
31-
{{/if}}
26+
<div local-class="no-readme">
27+
{{this.crate.name}} v{{this.currentVersion.num}} appears to have no <code>README.md</code> file
28+
</div>
3229
{{/if}}
3330
{{/if}}
3431
</div>

0 commit comments

Comments
 (0)