Skip to content

Commit 80a7edd

Browse files
committed
VersionList::Row: Show relative dates with absolute dates as tooltip
1 parent 4edef95 commit 80a7edd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/components/version-list/row.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
{{/if}}
1414
</div>
1515

16-
<span local-class="date">{{date-format @version.created_at 'PPP'}}</span>
16+
<span title={{date-format @version.created_at 'PPP'}} local-class="date">
17+
{{date-format-distance-to-now @version.created_at addSuffix=true}}
18+
</span>
1719

1820
{{#if this.isOwner}}
1921
<YankButton @version={{@version}} local-class="yank-button" />

app/components/version-list/row.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
composes: small from '../../styles/shared/typography.module.css';
3333
display: inline-block;
3434
margin-left: 20px;
35+
position: relative;
3536
}
3637

3738
.yanked {

0 commit comments

Comments
 (0)