Allow for template inside Timeago component that shows unless the time string is 'just now'
This commit is contained in:
parent
b70d50407c
commit
04e62df377
2 changed files with 25 additions and 19 deletions
|
|
@ -336,16 +336,12 @@
|
|||
tag="span"
|
||||
>
|
||||
<template #time>
|
||||
<i18n-t
|
||||
keypath="time.in_past"
|
||||
tag="span"
|
||||
>
|
||||
<Timeago
|
||||
:time="status.edited_at"
|
||||
:auto-update="60"
|
||||
:long-format="true"
|
||||
/>
|
||||
</i18n-t>
|
||||
<Timeago
|
||||
template-key="time.in_past"
|
||||
:time="status.edited_at"
|
||||
:auto-update="60"
|
||||
:long-format="true"
|
||||
/>
|
||||
</template>
|
||||
</i18n-t>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue