Show time-since next to 'XYZ boosted' on the home timeline. (#93)

This commit is contained in:
Tyler Kennedy 2022-12-04 11:27:42 -05:00 committed by GitHub
parent 8835fdee6b
commit 50868971f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -968,6 +968,13 @@ table.metadata td.name {
margin-right: 4px;
}
.boost-banner time {
float: right;
display: block;
color: var(--color-text-duller);
border-radius: 3px;
}
.mention-banner::before {
content: "\0040";
font: var(--fa-font-solid);

View File

@ -1,4 +1,5 @@
{% extends "base.html" %}
{% load activity_tags %}
{% block title %}Home{% endblock %}
@ -11,6 +12,9 @@
<a href="{{ event.subject_identity.urls.view }}">
{{ event.subject_identity.name_or_handle }}
</a> boosted
<time>
{{ event.subject_post_interaction.published | timedeltashort }} ago
</time>
</div>
{% include "activities/_post.html" with post=event.subject_post %}
{% endif %}