2018-05-09 03:47:17 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load humanize %}
|
2018-05-09 20:17:39 +02:00
|
|
|
{% load sanitizer %}
|
|
|
|
{% load taglinks %}
|
2018-05-09 03:47:17 +02:00
|
|
|
|
|
|
|
{% block title %}
|
2018-07-18 19:40:42 +02:00
|
|
|
Brutaldon ({{ own_acct.username }}) - {{ user.acct }} timelime
|
2018-05-09 03:47:17 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2018-11-30 20:30:46 +01:00
|
|
|
<div class="card user-card">
|
2018-08-28 18:22:20 +02:00
|
|
|
{% if not preferences.theme.is_brutalist %}
|
2018-06-11 20:25:13 +02:00
|
|
|
<div class="card-header" style="background-image: url({{ user.header }});">
|
|
|
|
{% else %}
|
2018-05-23 20:04:51 +02:00
|
|
|
<div class="card-header">
|
2018-06-11 20:25:13 +02:00
|
|
|
{% endif %}
|
2018-05-09 20:17:39 +02:00
|
|
|
<div class="card-header-title title">
|
2018-05-09 20:52:45 +02:00
|
|
|
<a href="{{ user.url }}">
|
2018-05-23 14:27:45 +02:00
|
|
|
{{ user.display_name }}
|
2018-05-09 20:52:45 +02:00
|
|
|
</a>
|
2018-05-09 20:17:39 +02:00
|
|
|
</div>
|
|
|
|
<figure class="image is-96x96 card-header-icon">
|
2018-05-23 20:04:51 +02:00
|
|
|
<img src="{{ user.avatar }}" alt="Avatar">
|
2018-06-12 00:16:32 +02:00
|
|
|
{% if user.locked %}
|
|
|
|
<span class="fa fa-lock account-locked">
|
|
|
|
<span class="is-hidden">Private</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2018-05-23 20:04:51 +02:00
|
|
|
</figure>
|
|
|
|
</div>
|
2018-05-09 20:17:39 +02:00
|
|
|
<div class="card-content">
|
|
|
|
<div class="content">
|
|
|
|
{{ user.note | relink_toot | strip_html | safe }}
|
|
|
|
</div>
|
2018-07-23 19:21:30 +02:00
|
|
|
{% if user.acct != own_acct.acct %}
|
2018-06-12 02:02:46 +02:00
|
|
|
<div class="level is-mobile">
|
2018-06-11 20:34:38 +02:00
|
|
|
<div class="level-left">
|
2018-06-12 00:16:32 +02:00
|
|
|
{% if relationship.requested %}
|
|
|
|
<a class="level-item fa fa-hourglass" title="cancel request"
|
2018-08-31 21:55:05 +02:00
|
|
|
href="{% url 'follow' user.id %}"
|
|
|
|
ic-post-to="{% url 'follow' user.id %}"
|
|
|
|
ic-indicator="#user-spinner" ic-replace-target="true">
|
2018-06-12 00:16:32 +02:00
|
|
|
<span class="is-hidden">Cancel request</span>
|
|
|
|
</a>
|
|
|
|
{% elif not relationship.following %}
|
|
|
|
<a class="level-item fa fa-user-plus" title="follow"
|
2018-08-31 21:55:05 +02:00
|
|
|
href="{% url 'follow' user.id %}"
|
|
|
|
ic-post-to="{% url 'follow' user.id %}"
|
|
|
|
ic-indicator="#user-spinner" ic-replace-target="true">
|
2018-06-12 00:16:32 +02:00
|
|
|
<span class="is-hidden">Follow</span>
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="level-item fa fa-user-times" title="unfollow"
|
2018-08-31 21:55:05 +02:00
|
|
|
href="{% url 'follow' user.id %}"
|
|
|
|
ic-post-to="{% url 'follow' user.id %}"
|
2018-09-05 16:18:33 +02:00
|
|
|
ic-indicator="#user-spinner" ic-replace-target="true"
|
|
|
|
ic-confirm="Unfollow this user?">
|
2018-06-12 00:16:32 +02:00
|
|
|
<span class="is-hidden">Unfollow</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
<a class="level-item fa fa-social-home"
|
|
|
|
href="{{ user.url }}" title="home">
|
2018-06-11 20:45:04 +02:00
|
|
|
<span class="is-hidden">View on home site</span>
|
|
|
|
</a>
|
2018-06-12 01:19:22 +02:00
|
|
|
<a class="level-item fa fa-envelope"
|
|
|
|
href="{% url 'toot' user.acct %}" title="mention">
|
|
|
|
<span class="is-hidden">Mention</span>
|
|
|
|
</a>
|
2018-08-31 21:55:05 +02:00
|
|
|
<i id="user-spinner" class="fa fa-spinner fa-spin" style="display:none"></i>
|
2018-06-11 20:34:38 +02:00
|
|
|
</div>
|
|
|
|
<div class="level-right">
|
2018-06-12 00:16:32 +02:00
|
|
|
{% if not relationship.muting %}
|
|
|
|
<a class="level-item fa fa-volume-off" title="mute"
|
2018-08-31 21:55:05 +02:00
|
|
|
href="{% url 'mute' user.id %}"
|
|
|
|
ic-post-to="{% url 'mute' user.id %}"
|
2018-09-05 16:18:33 +02:00
|
|
|
ic-indicator="#user-spinner" ic-replace-target="true"
|
|
|
|
ic-confirm="Mute this user?">
|
2018-06-12 00:16:32 +02:00
|
|
|
<span class="is-hidden">Mute</span>
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="level-item fa fa-volume-up" title="unmute"
|
2018-08-31 21:55:05 +02:00
|
|
|
href="{% url 'mute' user.id %}"
|
|
|
|
ic-post-to="{% url 'mute' user.id %}"
|
|
|
|
ic-indicator="#user-spinner" ic-replace-target="true">
|
2018-06-12 00:16:32 +02:00
|
|
|
<span class="is-hidden">Unmute</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if not relationship.blocking %}
|
|
|
|
<a class="level-item fa fa-ban" title="block"
|
2018-08-31 21:55:05 +02:00
|
|
|
href="{% url 'block' user.id %}"
|
|
|
|
ic-post-to="{% url 'block' user.id %}"
|
2018-09-05 16:18:33 +02:00
|
|
|
ic-indicator="#user-spinner" ic-replace-target="true"
|
|
|
|
ic-confirm="Block this user?">
|
2018-06-12 00:16:32 +02:00
|
|
|
<span class="is-hidden">Block</span>
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="level-item fa fa-circle-o" title="unblock"
|
2018-08-31 21:55:05 +02:00
|
|
|
href="{% url 'block' user.id %}"
|
|
|
|
ic-post-to="{% url 'block' user.id %}"
|
|
|
|
ic-indicator="#user-spinner" ic-replace-target="true">
|
2018-06-12 00:16:32 +02:00
|
|
|
<span class="is-hidden">Unblock</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2018-06-11 20:34:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-06-12 01:38:49 +02:00
|
|
|
{% endif %}
|
2018-05-09 20:17:39 +02:00
|
|
|
</div>
|
2018-05-09 03:47:17 +02:00
|
|
|
</div>
|
|
|
|
|
2018-05-09 20:17:39 +02:00
|
|
|
<br>
|
|
|
|
|
2018-05-09 03:47:17 +02:00
|
|
|
{% for toot in toots %}
|
2018-05-23 20:04:51 +02:00
|
|
|
{% if toot.reblog %}
|
2018-09-04 01:46:51 +02:00
|
|
|
{% include "main/toot_partial.html" with toot=toot.reblog reblog=True reblog_by=toot.account.acct reblog_icon=toot.account.avatar_static %}
|
2018-05-23 20:04:51 +02:00
|
|
|
{% else %}
|
|
|
|
{% include "main/toot_partial.html" with toot=toot reblog=False %}
|
|
|
|
{% endif %}
|
|
|
|
<hr class="is-hidden">
|
2018-05-09 03:47:17 +02:00
|
|
|
{% endfor %}
|
2018-06-24 23:07:43 +02:00
|
|
|
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
|
|
|
{% if prev %}
|
2018-06-24 23:22:41 +02:00
|
|
|
<a class="pagination-next" href="{% url 'user_prev' user.acct prev.since_id %}">Newer</a>
|
2018-06-24 23:07:43 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if next %}
|
2018-06-24 23:22:41 +02:00
|
|
|
<a class="pagination-previous" href="{% url 'user_next' user.acct next.max_id %}">Older</a>
|
2018-06-24 23:07:43 +02:00
|
|
|
{% endif %}
|
|
|
|
</nav>
|
2018-05-09 03:47:17 +02:00
|
|
|
|
2018-05-23 20:04:51 +02:00
|
|
|
{% endblock %}
|