2018-04-26 17:17:20 +02:00
|
|
|
{% extends "base.html" %}
|
2018-08-21 19:19:26 +02:00
|
|
|
{% load humanetime %}
|
2018-05-23 14:27:45 +02:00
|
|
|
{% load taglinks %}
|
2018-04-26 17:17:20 +02:00
|
|
|
|
|
|
|
{% block title %}
|
2018-07-18 19:40:42 +02:00
|
|
|
Brutaldon ({{ own_acct.username }}) - Notifications timelime
|
2018-04-26 17:17:20 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% comment %}
|
2018-05-23 14:27:45 +02:00
|
|
|
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
|
|
|
|
}
|
2018-04-26 17:17:20 +02:00
|
|
|
{% endcomment %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
2018-06-09 01:02:08 +02:00
|
|
|
<h1 class="title">Your notifications timeline</h1>
|
2018-05-23 14:27:45 +02:00
|
|
|
{% for note in notes %}
|
|
|
|
{% if note.type == 'mention' %}
|
|
|
|
<p>
|
|
|
|
<strong>{{ note.account.display_name }}</strong>
|
|
|
|
(<a href="{{ note.account.url | localuser }}">{{ note.account.acct }}</a>)
|
|
|
|
mentioned you.
|
|
|
|
</p>
|
|
|
|
<br>
|
|
|
|
{% include "main/toot_partial.html" with toot=note.status reblog=False %}
|
|
|
|
<hr class="is-hidden">
|
|
|
|
{% elif note.type == 'reblog' %}
|
|
|
|
<p>
|
|
|
|
{{ note.account.display_name }}
|
|
|
|
(<a href="{{ note.account.url | localuser }}">{{ note.account.acct }}</a>)
|
|
|
|
boosted your toot.
|
|
|
|
(<span>
|
2018-08-21 19:19:26 +02:00
|
|
|
<small>{{ note.created_at |humane_time }}</small>
|
2018-05-23 14:27:45 +02:00
|
|
|
</span>)
|
|
|
|
</p>
|
2018-09-04 01:46:51 +02:00
|
|
|
{% include "main/toot_partial.html" with toot=note.status reblog=True reblog_by=note.account.acct reblog_icon=note.account.avatar_static %}
|
2018-05-23 14:27:45 +02:00
|
|
|
<hr class="is-hidden">
|
|
|
|
{% elif note.type == 'favourite' %}
|
|
|
|
<p>
|
|
|
|
{{ note.account.display_name }}
|
|
|
|
(<a href="{{ note.account.url | localuser}}">{{ note.account.acct }}</a>)
|
|
|
|
favorited your toot.
|
|
|
|
(<span>
|
2018-08-21 19:19:26 +02:00
|
|
|
<small>{{ note.created_at |humane_time }}</small>
|
2018-05-23 14:27:45 +02:00
|
|
|
</span>)
|
|
|
|
</p>
|
2018-05-26 19:49:04 +02:00
|
|
|
{% include "main/toot_partial.html" with toot=note.status %}
|
2018-05-23 15:03:15 +02:00
|
|
|
<hr class="is-hidden">
|
2018-05-23 14:27:45 +02:00
|
|
|
{% elif note.type == 'follow' %}
|
|
|
|
<article class="media">
|
|
|
|
<figure class="media-left">
|
|
|
|
<p class="image is-64x64">
|
2018-09-04 01:46:51 +02:00
|
|
|
<img src="{{ note.account.avatar_static }}" alt="">
|
2018-05-23 14:27:45 +02:00
|
|
|
</p>
|
|
|
|
</figure>
|
|
|
|
<div class="media-content" >
|
|
|
|
<div class="content">
|
|
|
|
<strong>{{ note.account.display_name }}</strong>
|
|
|
|
(<a href="{{ note.account.url |localuser }}">{{ note.account.acct }}</a>)
|
|
|
|
followed you.
|
|
|
|
(<a href="{{ note.url }}">
|
2018-08-21 19:19:26 +02:00
|
|
|
<small>{{ note.created_at |humane_time }}</small>
|
2018-05-23 14:27:45 +02:00
|
|
|
</a>)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
<hr class="is-hidden">
|
2019-10-29 15:58:09 +01:00
|
|
|
{% elif note.type == 'poll' %}
|
|
|
|
<p>A poll you created or voted in has ended.</p>
|
|
|
|
{% include "main/toot_partial.html" with toot=note.status %}
|
|
|
|
<hr class="is-hidden">
|
2018-05-23 14:27:45 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2018-06-24 20:26:07 +02:00
|
|
|
|
2018-06-24 20:19:35 +02:00
|
|
|
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
|
|
|
{% if prev %}
|
2019-05-06 19:14:19 +02:00
|
|
|
<a class="pagination-next" href="{% url 'note_prev' prev.min_id %}">Newer</a>
|
2018-06-24 20:19:35 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if next %}
|
|
|
|
<a class="pagination-previous" href="{% url 'note_next' next.max_id %}">Older</a>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
2018-06-24 20:26:07 +02:00
|
|
|
|
2018-04-26 17:17:20 +02:00
|
|
|
|
|
|
|
{% endblock %}
|