{% extends 'layout.html' %} {% load humanize %}l {% block content %}

Notifications

{% csrf_token %}
{% for notification in notifications %}

{% if notification.notification_type == 'FAVORITE' %} {% include 'snippets/username.html' with user=notification.related_user %} favorited your status {% elif notification.notification_type == 'REPLY' %} {% include 'snippets/username.html' with user=notification.related_user %} replied to your status {% elif notification.notification_type == 'FOLLOW' %} {% include 'snippets/username.html' with user=notification.related_user %} followed you {% elif notification.notification_type == 'FOLLOW_REQUEST' %} {% include 'snippets/username.html' with user=notification.related_user %} sent you a follow request {% include 'snippets/follow_request_buttons.html' with user=notification.related_user %} {% endif %} {{ notification.created_date | naturaltime }}

{% endfor %}
{% endblock %}