2018-05-02 00:05:36 +00:00
|
|
|
|
<a class="status-relative-date {isStatusInNotification ? 'status-in-notification' : '' }"
|
|
|
|
|
href="/statuses/{originalStatusId}"
|
|
|
|
|
focus-key={focusKey}
|
2018-02-10 21:57:04 +00:00
|
|
|
|
>
|
2018-11-25 09:20:58 +00:00
|
|
|
|
<time datetime={createdAtDate} title={timeagoFormattedDate}
|
|
|
|
|
aria-label="{timeagoFormattedDate} – click to show thread">
|
|
|
|
|
{timeagoFormattedDate}
|
2018-03-16 03:04:24 +00:00
|
|
|
|
</time>
|
2018-02-10 06:55:11 +00:00
|
|
|
|
</a>
|
|
|
|
|
<style>
|
|
|
|
|
.status-relative-date {
|
|
|
|
|
grid-area: relative-date;
|
|
|
|
|
align-self: center;
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
font-size: 1.1em;
|
|
|
|
|
text-align: right;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
.status-relative-date, .status-relative-date:hover, .status-relative-date:visited {
|
|
|
|
|
color: var(--deemphasized-text-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-relative-date.status-in-notification,
|
|
|
|
|
.status-relative-date.status-in-notification:hover,
|
|
|
|
|
.status-relative-date.status-in-notification:visited {
|
|
|
|
|
color: var(--very-deemphasized-text-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
computed: {
|
2018-05-02 00:05:36 +00:00
|
|
|
|
focusKey: ({ uuid }) => `status-relative-date-${uuid}`
|
2018-02-10 06:55:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|