mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-06-05 21:49:32 +02:00
Merge branch 'working-search'
This commit is contained in:
2
Pipfile
2
Pipfile
@@ -21,7 +21,7 @@ requests = "*"
|
|||||||
six = "*"
|
six = "*"
|
||||||
"urllib3" = "*"
|
"urllib3" = "*"
|
||||||
webencodings = "*"
|
webencodings = "*"
|
||||||
Django = "~=3.2"
|
Django = "~=4.2"
|
||||||
django-html_sanitizer = "*"
|
django-html_sanitizer = "*"
|
||||||
inscriptis = "*"
|
inscriptis = "*"
|
||||||
lxml = "*"
|
lxml = "*"
|
||||||
|
@@ -12,6 +12,14 @@ https://docs.djangoproject.com/en/2.0/ref/settings/
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
# Work around issue in sanitizer
|
||||||
|
import django
|
||||||
|
try:
|
||||||
|
from django.utils.encoding import smart_text
|
||||||
|
except:
|
||||||
|
from django.utils.encoding import smart_str
|
||||||
|
django.utils.encoding.smart_text = smart_str
|
||||||
|
|
||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
|
@@ -14,16 +14,8 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Brutaldon ({{ own_acct.username }}) - {{ timeline_name }} timelime</h1>
|
<h1 class="title">Your {{ timeline_name }} timeline</h1>
|
||||||
{% if form %}
|
<div id="timeline">
|
||||||
<h2 >Post</h2>
|
|
||||||
<div >
|
|
||||||
{% include "main/post_minimal_partial.html" %}
|
|
||||||
</div>
|
|
||||||
<hr >
|
|
||||||
{% endif %}
|
|
||||||
<h2 >Your {{ timeline_name }} timeline</h2>
|
|
||||||
<div>
|
|
||||||
{% for toot in toots %}
|
{% for toot in toots %}
|
||||||
{% cache 600 toot_partial toot.id %}
|
{% cache 600 toot_partial toot.id %}
|
||||||
{% if toot.reblog %}
|
{% if toot.reblog %}
|
||||||
|
@@ -11,13 +11,16 @@
|
|||||||
<article>
|
<article>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<figure>
|
<div class="media-content">
|
||||||
|
<div class="content">
|
||||||
|
<figure class="">
|
||||||
|
<p class="image is-64x64 account-avatar">
|
||||||
<a href="{% url "user" toot.account.acct %}">
|
<a href="{% url "user" toot.account.acct %}">
|
||||||
<img class="avatar" loading="auto" src="{{ toot.account.avatar_static }}"
|
<img class="avatar" loading="auto" src="{{ toot.account.avatar_static }}"
|
||||||
alt="">
|
alt="">
|
||||||
</a>
|
</a>
|
||||||
|
</p>
|
||||||
</figure>
|
</figure>
|
||||||
<div >
|
|
||||||
<p>
|
<p>
|
||||||
<h3><strong>{{ toot.account.display_name | fix_emojos:toot.account.emojis | strip_html |safe}}</strong></h3>
|
<h3><strong>{{ toot.account.display_name | fix_emojos:toot.account.emojis | strip_html |safe}}</strong></h3>
|
||||||
<small><a href="{% url "user" toot.account.acct %}">
|
<small><a href="{% url "user" toot.account.acct %}">
|
||||||
@@ -26,6 +29,13 @@
|
|||||||
<small>{{ toot.created_at |humane_time }}</small>
|
<small>{{ toot.created_at |humane_time }}</small>
|
||||||
</a>
|
</a>
|
||||||
{% if reblog %}
|
{% if reblog %}
|
||||||
|
<figure>
|
||||||
|
<p class="image is-32x32" >
|
||||||
|
<a href="{% url "user" reblog_by %}">
|
||||||
|
<img loading="auto" src ="{{ reblog_icon }}" alt="">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</figure>
|
||||||
<br>
|
<br>
|
||||||
Boosted by @{{ reblog_by }}
|
Boosted by @{{ reblog_by }}
|
||||||
<figure>
|
<figure>
|
||||||
|
Reference in New Issue
Block a user