feat: add link to the status from the time link (#97)

This commit is contained in:
Michel EDIGHOFFER 2022-11-25 17:48:49 +01:00 committed by GitHub
parent c2af403e6a
commit 055bcf0e96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,9 +84,11 @@ const timeago = useTimeAgo(() => status.createdAt, {
<div flex-auto /> <div flex-auto />
<div text-sm op50 flex="~ row nowrap" hover:underline> <div text-sm op50 flex="~ row nowrap" hover:underline>
<CommonTooltip :content="createdAt"> <CommonTooltip :content="createdAt">
<time :title="status.createdAt" :datetime="status.createdAt"> <a :title="status.createdAt" :href="getStatusPath(status)" @click.prevent="go">
<time text-sm op50 hover:underline :datetime="status.createdAt">
{{ timeago }} {{ timeago }}
</time> </time>
</a>
</CommonTooltip> </CommonTooltip>
<StatusEditIndicator v-if="status.editedAt" :edited-at="status.editedAt" /> <StatusEditIndicator v-if="status.editedAt" :edited-at="status.editedAt" />
</div> </div>