coriplus/app/templates/includes/notification.html

13 lines
493 B
HTML
Raw Normal View History

2019-05-05 10:09:27 +02:00
{% set detail = json.loads(notification.detail) %}
{% if notification.type == 'follow' %}
{% set user = User[detail['user']] %}
<p><a href="/+{{ user.username }}">{{ user.username }}</a> started following you.</p>
2019-05-22 18:25:08 +02:00
{% elif notification.type == 'mention' %}
{% set user = User[detail['user']] %}
<p><a href="/+{{ user.username }}">{{ user.username }}</a> mentioned you in a message.</p>
2019-05-05 10:09:27 +02:00
{% else %}
<p>Unknown Notification</p>
{% endif %}
<small>{{ notification.pub_date | human_date }}</small>