Adding notifications

This commit is contained in:
Yusur 2019-05-05 10:09:27 +02:00
parent 0f0ef9c08b
commit 6906455981
3 changed files with 79 additions and 4 deletions

View file

@ -0,0 +1,10 @@
{% 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>
{% else %}
<p>Unknown Notification</p>
{% endif %}
<small>{{ notification.pub_date | human_date }}</small>