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 %}
|
2018-09-06 17:45:28 +02:00
|
|
|
<article id="toot-{{toot.id}}" class="media box active-context">
|
2018-08-29 11:23:35 +02:00
|
|
|
{% else %}
|
2018-09-06 17:45:28 +02:00
|
|
|
<article id="toot-{{toot.id}}" class="media box">
|
2018-08-29 11:23:35 +02:00
|
|
|
{% endif %}
|
2018-05-23 16:05:13 +02:00
|
|
|
|
2018-08-29 11:23:35 +02:00
|
|
|
<figure class="media-left">
|
|
|
|
<p class="image is-64x64 account-avatar">
|
|
|
|
<a href="{% url "user" toot.account.acct %}">
|
2018-09-04 01:46:51 +02:00
|
|
|
<img src="{{ toot.account.avatar_static }}"
|
2018-08-29 11:23:35 +02:00
|
|
|
alt="">
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
{% if reblog %}
|
2018-04-26 17:17:20 +02:00
|
|
|
<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-05-23 14:27:45 +02:00
|
|
|
{% endif %}
|
2018-08-29 11:23:35 +02:00
|
|
|
</figure>
|
|
|
|
<div class="media-content">
|
|
|
|
<div class="content">
|
|
|
|
<p>
|
|
|
|
<strong>{{ toot.account.display_name }}</strong>
|
|
|
|
<small><a href="{% url "user" toot.account.acct %}">@{{ toot.account.acct }}</a></small>
|
|
|
|
<a href="{{ toot.url }}">
|
|
|
|
<small>{{ toot.created_at |humane_time }}</small>
|
|
|
|
</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">
|
|
|
|
{{ toot.content | relink_toot | fix_emojos:toot.emojis | strip_html | safe }}
|
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
{% else %}
|
2018-05-23 14:27:45 +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-05-23 14:27:45 +02:00
|
|
|
</div>
|
2018-08-29 11:23:35 +02:00
|
|
|
{% endif %}
|
2018-04-24 15:12:13 +02:00
|
|
|
|
2018-08-29 11:23:35 +02:00
|
|
|
{% if toot.media_attachments %}
|
|
|
|
<br>
|
2018-09-06 15:49:01 +02:00
|
|
|
<div class="level attachments">
|
2018-08-29 11:23:35 +02:00
|
|
|
{% for media in toot.media_attachments %}
|
2018-05-23 14:27:45 +02:00
|
|
|
<a class="level-item" href="{{ media.url }}">
|
|
|
|
{% if toot.sensitive %}
|
2018-08-29 11:23:35 +02:00
|
|
|
<img src="{% static "images/sensitive.png" %}"
|
|
|
|
{% else %}
|
|
|
|
<img src="{{ media.preview_url }}"
|
|
|
|
{% endif %}
|
|
|
|
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-08-29 19:11:02 +02:00
|
|
|
class="image is-max-256">
|
2018-05-23 14:27:45 +02:00
|
|
|
</a>
|
2018-08-29 11:23:35 +02:00
|
|
|
{% endfor %}
|
2018-04-24 15:12:13 +02:00
|
|
|
</div>
|
2018-08-29 11:23:35 +02:00
|
|
|
{% endif %}
|
|
|
|
<br>
|
|
|
|
<p class="is-hidden"></p>
|
2018-05-22 14:11:21 +02:00
|
|
|
|
2018-09-10 00:22:01 +02:00
|
|
|
</div>
|
|
|
|
{% if not confirm_page %}
|
|
|
|
<nav class="level is-mobile">
|
|
|
|
<div class="level-left">
|
|
|
|
<a href="{% url "reply" toot.id %}" class="level-item">
|
|
|
|
<span class="fa fa-reply">
|
|
|
|
<span class="is-hidden-mobile">Reply</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{% if toot.visibility != 'private' and toot.visibility != 'direct' %}
|
|
|
|
<a href="{% url "boost" toot.id %}" class="level-item"
|
|
|
|
ic-post-to="{% url "boost" toot.id %}"
|
|
|
|
ic-indicator="#toot-spinner-{{toot.id}}">
|
|
|
|
{% if toot.reblogged %}
|
|
|
|
<span class="fa fa-retweet has-text-warning">
|
|
|
|
<strong class="is-hidden-mobile" >Boosted</strong>
|
|
|
|
{% else %}
|
|
|
|
<span class="fa fa-retweet" >
|
|
|
|
<span class="is-hidden-mobile" >Boost</span>
|
|
|
|
{% endif %}
|
2018-05-23 14:27:45 +02:00
|
|
|
</span>
|
2018-09-10 00:22:01 +02:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="{% url "fav" toot.id %}" class="level-item"
|
|
|
|
ic-post-to="{% url "fav" toot.id %}"
|
|
|
|
ic-indicator="#toot-spinner-{{toot.id}}">
|
|
|
|
{% if toot.favourited %}
|
|
|
|
<span class="fa fa-heart has-text-warning">
|
|
|
|
<strong class="is-hidden-mobile" >Favorited</strong>
|
|
|
|
{% else %}
|
|
|
|
<span class="fa fa-heart">
|
|
|
|
<span class="is-hidden-mobile" >Favorite</span>
|
|
|
|
{% endif %}
|
2018-08-29 11:23:35 +02:00
|
|
|
</span>
|
2018-09-10 00:22:01 +02:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
<i id="toot-spinner-{{toot.id}}" class="fa fa-spinner fa-spin" style="display:none"></i>
|
|
|
|
</div>
|
|
|
|
<div class="level-right">
|
|
|
|
{% if toot.account.acct == own_acct.acct %}
|
|
|
|
<a class="level-item" href="{% url "redraft" toot.id %}"
|
|
|
|
ic-get-from="{% url "redraft" toot.id %}"
|
|
|
|
ic-indicator="#page-load-indicator"
|
|
|
|
ic-target="#main"
|
|
|
|
ic-select-from-response="#main"
|
|
|
|
ic-push-url="true">
|
|
|
|
redraft
|
|
|
|
</a>
|
|
|
|
<a class="level-item" href="{% url "delete" toot.id %}"
|
|
|
|
ic-delete-from="{% url "delete" toot.id %}"
|
|
|
|
ic-indicator="#toot-spinner-{{toot.id}}"
|
|
|
|
ic-confirm="Really delete that toot?"
|
|
|
|
ic-success-action="fadeOut;remove"
|
|
|
|
ic-action-target="#toot-{{ toot.id }}">
|
|
|
|
delete
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{{ toot.visibility }}
|
|
|
|
|
|
|
|
<a class="level-item" href="{% url "thread" toot.id %}"
|
|
|
|
ic-get-from="{% url "thread" toot.id %}"
|
|
|
|
ic-target="#main"
|
2018-09-15 22:40:16 +02:00
|
|
|
ic-scroll-to-target="true"
|
2018-09-10 00:22:01 +02:00
|
|
|
ic-select-from-response="#main"
|
|
|
|
ic-push-url="true"
|
|
|
|
ic-on-success="afterPage('{{ own_acct.username }}', 'thread')"
|
|
|
|
ic-indicator="#page-load-indicator"">
|
|
|
|
thread
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
|
|
|
|
2018-05-23 14:56:34 +02:00
|
|
|
</div>
|
2018-08-29 11:23:35 +02:00
|
|
|
<div class="media-right"></div>
|
|
|
|
</article>
|