Skip to content

Commit e4b97d7

Browse files
committed
Auto merge of #2193 - azolotko:more-consistent-crate-row-stats, r=locks
Make crate stats look more consistent <img width="1026" alt="Screenshot 2020-02-16 at 19 20 05" src="https://user-images.githubusercontent.com/110424/74610296-3d5c7a80-50f2-11ea-93cd-aa96b990f5c9.png">
2 parents 20d5c2d + 15bbc40 commit e4b97d7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

app/components/crate-row.hbs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,20 @@
1919
<div class='stats'>
2020
<div class='downloads' data-test-downloads>
2121
{{svg-jar "download"}}
22-
<span class='num'>All-Time: {{ format-num this.crate.downloads }}</span>
22+
<span class='num'><abbr title="Total number of downloads">All-Time:</abbr> {{ format-num this.crate.downloads }}</span>
2323
</div>
2424
<div class="recent-downloads" data-test-recent-downloads>
2525
{{svg-jar "download"}}
2626
<span class='num'><abbr title="Downloads in the last 90 days">Recent:</abbr> {{ format-num this.crate.recent_downloads }}</span>
2727
</div>
2828
<div class="updated-at" >
2929
{{svg-jar "latest-updates" height="32" width="32"}}
30-
<time title="Last updated: {{ this.crate.updated_at }}" datetime="{{ moment-format this.crate.updated_at 'YYYY-MM-DDTHH:mm:ssZ' }}" data-test-updated-at>
31-
{{ moment-from-now this.crate.updated_at }}
32-
</time>
30+
<span>
31+
<abbr title="The last time crate was updated">Updated:</abbr>
32+
<time title="Last updated: {{ this.crate.updated_at }}" datetime="{{ moment-format this.crate.updated_at 'YYYY-MM-DDTHH:mm:ssZ' }}" data-test-updated-at>
33+
{{ moment-from-now this.crate.updated_at }}
34+
</time>
35+
</span>
3336
</div>
3437
</div>
3538
<div class="quick-links">

0 commit comments

Comments
 (0)