Adding notifications
This commit is contained in:
parent
0f0ef9c08b
commit
6906455981
3 changed files with 79 additions and 4 deletions
10
templates/includes/notification.html
Normal file
10
templates/includes/notification.html
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue