2018-08-21 03:43:23 +02:00
|
|
|
{% load humanetime %}
|
2018-04-24 15:12:13 +02:00
|
|
|
{% load humanize %}
|
2018-04-27 02:36:48 +02:00
|
|
|
{% load sanitizer %}
|
2018-05-07 14:46:59 +02:00
|
|
|
{% load taglinks %}
|
2018-05-15 16:04:09 +02:00
|
|
|
{% load static %}
|
2018-04-24 15:12:13 +02:00
|
|
|
|
2018-05-23 16:05:13 +02:00
|
|
|
{% if active %}
|
|
|
|
<article class="media active-context">
|
|
|
|
{% else %}
|
|
|
|
<article class="media">
|
|
|
|
{% endif %}
|
|
|
|
|
2018-04-26 17:17:20 +02:00
|
|
|
<figure class="media-left">
|
2018-06-13 19:35:21 +02:00
|
|
|
<p class="image is-64x64 account-avatar">
|
2018-05-09 03:47:17 +02:00
|
|
|
<a href="{% url "user" toot.account.acct %}">
|
|
|
|
<img src="{{ toot.account.avatar }}"
|
|
|
|
alt="">
|
|
|
|
</a>
|
2018-04-26 17:17:20 +02:00
|
|
|
</p>
|
|
|
|
{% if reblog %}
|
|
|
|
<p class="image is-32x32 reblog-icon" >
|
2018-05-09 03:47:17 +02:00
|
|
|
<a href="{% url "user" reblog_by %}">
|
|
|
|
<img src ="{{ reblog_icon }}" alt="">
|
|
|
|
</a>
|
2018-04-24 15:12:13 +02:00
|
|
|
</p>
|
2018-04-26 17:17:20 +02:00
|
|
|
{% endif %}
|
|
|
|
</figure>
|
|
|
|
<div class="media-content">
|
2018-05-23 14:56:34 +02:00
|
|
|
<div class="content">
|
|
|
|
<p>
|
2018-05-23 14:27:45 +02:00
|
|
|
<strong>{{ toot.account.display_name }}</strong>
|
|
|
|
<small><a href="{% url "user" toot.account.acct %}">@{{ toot.account.acct }}</a></small>
|
|
|
|
<a href="{{ toot.url }}">
|
2018-08-21 03:43:23 +02:00
|
|
|
<small>{{ toot.created_at |humane_time }}</small>
|
2018-05-23 14:27:45 +02:00
|
|
|
</a>
|
|
|
|
{% if reblog %}
|
|
|
|
<br>
|
|
|
|
Boosted by @{{ reblog_by }}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% if toot.spoiler_text %}
|
|
|
|
<details class="toot">
|
|
|
|
<summary><strong>{{ toot.spoiler_text }} </strong></summary>
|
|
|
|
<div class="toot">
|
2018-08-17 01:21:51 +02:00
|
|
|
{{ toot.content | relink_toot | fix_emojos:toot.emojis | strip_html | safe }}
|
2018-05-23 14:27:45 +02:00
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
{% else %}
|
2018-04-26 17:17:20 +02:00
|
|
|
<div class="toot">
|
2018-08-17 01:21:51 +02:00
|
|
|
{{ toot.content | relink_toot | fix_emojos:toot.emojis | strip_html | safe }}
|
2018-04-26 17:17:20 +02:00
|
|
|
</div>
|
2018-05-23 14:27:45 +02:00
|
|
|
{% endif %}
|
2018-04-24 15:12:13 +02:00
|
|
|
|
2018-05-23 14:27:45 +02:00
|
|
|
{% if toot.media_attachments %}
|
|
|
|
<br>
|
|
|
|
<div class="level">
|
|
|
|
<div class="level-left">
|
|
|
|
{% for media in toot.media_attachments %}
|
|
|
|
<a class="level-item" href="{{ media.url }}">
|
|
|
|
{% if toot.sensitive %}
|
|
|
|
<img src="{% static "images/sensitive.png" %}"
|
|
|
|
{% else %}
|
|
|
|
<img src="{{ media.preview_url }}"
|
|
|
|
{% endif %}
|
2018-04-26 17:17:20 +02:00
|
|
|
alt="{% if media.description %}
|
|
|
|
{{ media.description }}
|
|
|
|
{% elif media.text_url %}
|
|
|
|
{{ media.text_url }}
|
|
|
|
{% else %}
|
|
|
|
{{ media.url }}
|
|
|
|
{% endif %}"
|
|
|
|
{% if media.description %}
|
|
|
|
title="{{ media.description }}"
|
|
|
|
{% endif %}
|
2018-05-30 18:53:22 +02:00
|
|
|
class="image is-max-128">
|
2018-05-23 14:27:45 +02:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
2018-04-24 15:12:13 +02:00
|
|
|
</div>
|
2018-05-23 14:27:45 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<br>
|
2018-04-27 01:46:05 +02:00
|
|
|
<p class="is-hidden"></p>
|
2018-05-22 14:11:21 +02:00
|
|
|
|
|
|
|
{% if not confirm_page %}
|
2018-05-23 14:27:45 +02:00
|
|
|
<nav class="level is-mobile">
|
|
|
|
<div class="level-left">
|
|
|
|
<a href="{% url "reply" toot.id %}" class="level-item">
|
2018-06-13 19:10:27 +02:00
|
|
|
<span class="icon is-small"><span class="fa fa-reply">
|
2018-05-01 14:37:08 +02:00
|
|
|
<span class="is-invisible">Reply</span>
|
2018-06-13 19:10:27 +02:00
|
|
|
</span></span>
|
2018-05-01 14:37:08 +02:00
|
|
|
</a>
|
2018-05-23 14:27:45 +02:00
|
|
|
{% if toot.visibility != 'private' and toot.visibility != 'direct' %}
|
|
|
|
<a href="{% url "boost" toot.id %}" class="level-item">
|
|
|
|
<span class="icon is-small">
|
|
|
|
{% if toot.reblogged %}
|
2018-06-13 19:10:27 +02:00
|
|
|
<span class="fa fa-retweet has-text-warning">
|
2018-08-21 20:58:36 +02:00
|
|
|
<strong class="is-invisible" >Boosted</strong>
|
2018-05-23 14:27:45 +02:00
|
|
|
{% else %}
|
2018-06-13 19:10:27 +02:00
|
|
|
<span class="fa fa-retweet" >
|
2018-06-13 18:45:39 +02:00
|
|
|
<span class="is-invisible" >Boost</span>
|
2018-05-23 14:27:45 +02:00
|
|
|
{% endif %}
|
2018-06-13 19:10:27 +02:00
|
|
|
</span>
|
2018-05-23 14:27:45 +02:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="{% url "fav" toot.id %}" class="level-item">
|
2018-05-01 14:37:08 +02:00
|
|
|
<span class="icon is-small">
|
|
|
|
{% if toot.favourited %}
|
2018-06-13 19:10:27 +02:00
|
|
|
<span class="fa fa-heart has-text-warning">
|
2018-08-21 20:58:36 +02:00
|
|
|
<strong class="is-invisible" >Favorited</strong>
|
2018-05-01 14:37:08 +02:00
|
|
|
{% else %}
|
2018-06-13 19:10:27 +02:00
|
|
|
<span class="fa fa-heart">
|
2018-06-13 18:45:39 +02:00
|
|
|
<span class="is-invisible" >Favorite</span>
|
2018-05-01 14:37:08 +02:00
|
|
|
{% endif %}
|
2018-06-13 19:10:27 +02:00
|
|
|
</span>
|
2018-05-01 14:37:08 +02:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-05-23 14:27:45 +02:00
|
|
|
<div class="level-right">
|
2018-07-23 19:21:30 +02:00
|
|
|
{% if toot.account.acct == own_acct.acct %}
|
2018-05-23 14:27:45 +02:00
|
|
|
<a class="level-item" href="{% url "delete" toot.id %}">
|
|
|
|
delete
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
<span class="level-item">
|
|
|
|
{{ toot.visibility }}
|
|
|
|
</span>
|
|
|
|
<a class="level-item" href="{% url "thread" toot.id %}">
|
|
|
|
thread
|
2018-05-22 15:41:11 +02:00
|
|
|
</a>
|
2018-05-23 14:27:45 +02:00
|
|
|
</div>
|
|
|
|
</nav>
|
2018-05-22 14:11:21 +02:00
|
|
|
{% endif %}
|
2018-05-23 14:56:34 +02:00
|
|
|
</div>
|
2018-04-26 17:17:20 +02:00
|
|
|
</div>
|
2018-05-23 14:56:34 +02:00
|
|
|
<div class="media-right"></div>
|
2018-04-26 17:17:20 +02:00
|
|
|
</article>
|