{% extends "base.html" %} {% load humanetime %} {% load taglinks %} {% block title %} Brutaldon ({{ own_acct.username }}) - Notifications timelime {% endblock %} {% comment %} mastodon.notifications()[0] # Returns the following dictionary: { 'id': # id of the notification 'type': # "mention", "reblog", "favourite" or "follow" 'created_at': # The time the notification was created 'account': # User dict of the user from whom the notification originates 'status': # In case of "mention", the mentioning status # In case of reblog / favourite, the reblogged / favourited status } {% endcomment %} {% block content %}

Your notifications timeline

{% for group in groups %} {% if bundle_notifications and group.0.type in bundleable %} {% if group.0.type == 'favourite' %}

{% for account in group.accounts %} {% include "comma.html" %}{{ account.display_name }} ({{ account.acct }}) {% endfor %} favorited your toot.

{% include "main/toot_partial.html" with toot=group.0.status %} {% elif group.0.type == 'reblog' %}

{% for account in group.accounts %} {% include "comma.html" %}{{ account.display_name }} ({{ account.acct }}) {% endfor %} boosted your toot.

{% include "main/toot_partial.html" with toot=group.0.status reblog=True reblog_by=group.0.account.acct reblog_icon=group.0.account.avatar_static %} {% endif %} {% else %} {% for note in group %} {% if note.type == 'mention' %}

{{ note.account.display_name }} ({{ note.account.acct }}) mentioned you.


{% include "main/toot_partial.html" with toot=note.status reblog=False %} {% elif note.type == 'reblog' %}

{{ note.account.display_name }} ({{ note.account.acct }}) boosted your toot. ( {{ note.created_at |humane_time }} )

{% include "main/toot_partial.html" with toot=note.status reblog=True reblog_by=note.account.acct reblog_icon=note.account.avatar_static %} {% elif note.type == 'favourite' %}

{{ note.account.display_name }} ({{ note.account.acct }}) favorited your toot. ( {{ note.created_at |humane_time }} )

{% include "main/toot_partial.html" with toot=note.status %} {% elif note.type == 'follow' %}

{{ note.account.display_name }} ({{ note.account.acct }}) followed you. ( {{ note.created_at |humane_time }} )
{% elif note.type == 'poll' %}

A poll you created or voted in has ended.

{% include "main/toot_partial.html" with toot=note.status %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endblock %}