Unpacking modules
This commit is contained in:
parent
1e7787e24e
commit
a9006bf1bc
36 changed files with 971 additions and 822 deletions
|
|
@ -1,13 +0,0 @@
|
|||
{% 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>
|
||||
{% elif notification.type == 'mention' %}
|
||||
{% set user = User[detail['user']] %}
|
||||
<p><a href="/+{{ user.username }}">{{ user.username }}</a> mentioned you in a message.</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