1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 14:28:10 +09:00

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 text-sm op50 flex="~ row nowrap" hover:underline>
<CommonTooltip :content="createdAt">
<time :title="status.createdAt" :datetime="status.createdAt">
{{ timeago }}
</time>
<a :title="status.createdAt" :href="getStatusPath(status)" @click.prevent="go">
<time text-sm op50 hover:underline :datetime="status.createdAt">
{{ timeago }}
</time>
</a>
</CommonTooltip>
<StatusEditIndicator v-if="status.editedAt" :edited-at="status.editedAt" />
</div>