mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Fix notif page
This commit is contained in:
parent
93ee6c435d
commit
d21ce3313d
1 changed files with 3 additions and 2 deletions
|
@ -5,9 +5,10 @@
|
||||||
<title>{{ local_actor.display_name }} - Notifications</title>
|
<title>{{ local_actor.display_name }} - Notifications</title>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% macro notif_actor_action(notif, text) %}
|
{% macro notif_actor_action(notif, text, with_icon=False) %}
|
||||||
<div class="actor-action">
|
<div class="actor-action">
|
||||||
<a href="{{ url_for("admin_profile") }}?actor_id={{ notif.actor.ap_id }}">{{ notif.actor.display_name | clean_html(notif.actor) | safe }}</a> {{ text }}
|
<a href="{{ url_for("admin_profile") }}?actor_id={{ notif.actor.ap_id }}">
|
||||||
|
{% if with_icon %}{{ utils.display_tiny_actor_icon(notif.actor) }}{% endif %} {{ notif.actor.display_name | clean_html(notif.actor) | safe }}</a> {{ text }}
|
||||||
<span title="{{ notif.created_at.isoformat() }}">{{ notif.created_at | timeago }}</span>
|
<span title="{{ notif.created_at.isoformat() }}">{{ notif.created_at | timeago }}</span>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
Loading…
Reference in a new issue