Improve shares on homepage

main
Thomas Sileo 2022-08-27 09:14:16 +02:00
parent aaf8b811dc
commit e959085d38
2 changed files with 4 additions and 1 deletions

View File

@ -120,6 +120,9 @@ dl {
strong {
color: $primary-color;
}
span {
color: $muted-color;
}
}
div.highlight {

View File

@ -29,7 +29,7 @@
{% if outbox_object.ap_type in ["Note", "Article", "Video", "Question"] %}
{{ utils.display_object(outbox_object) }}
{% elif outbox_object.ap_type == "Announce" %}
<div class="shared-header"><strong>{{ utils.display_tiny_actor_icon(local_actor) }} {{ local_actor.display_name | clean_html(local_actor) | safe }}</strong> shared</div>
<div class="shared-header"><strong>{{ utils.display_tiny_actor_icon(local_actor) }} {{ local_actor.display_name | clean_html(local_actor) | safe }}</strong> shared <span title="{{ outbox_object.ap_published_at.isoformat() }}">{{ outbox_object.ap_published_at | timeago }}</span></div>
{{ utils.display_object(outbox_object.relates_to_anybox_object) }}
{% endif %}
{% endfor %}