Improve shares on homepage

This commit is contained in:
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 { strong {
color: $primary-color; color: $primary-color;
} }
span {
color: $muted-color;
}
} }
div.highlight { div.highlight {

View file

@ -29,7 +29,7 @@
{% if outbox_object.ap_type in ["Note", "Article", "Video", "Question"] %} {% if outbox_object.ap_type in ["Note", "Article", "Video", "Question"] %}
{{ utils.display_object(outbox_object) }} {{ utils.display_object(outbox_object) }}
{% elif outbox_object.ap_type == "Announce" %} {% 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) }} {{ utils.display_object(outbox_object.relates_to_anybox_object) }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}