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; margin-right: 4px;
} }
.boost-banner time {
float: right;
display: block;
color: var(--color-text-duller);
border-radius: 3px;
}
.mention-banner::before { .mention-banner::before {
content: "\0040"; content: "\0040";
font: var(--fa-font-solid); font: var(--fa-font-solid);

View File

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