Add user follows to following feed

This commit is contained in:
2026-09-15 09:22:25 +02:00
parent 55174684af
commit c4a84ec135
12 changed files with 213 additions and 28 deletions
+6
View File
@@ -101,6 +101,12 @@
<div class="stat"><strong>{{ attended_count }}</strong>{{ _('besuchte Konzerte') }}</div>
{% if not is_own_profile %}
<div class="friend-actions">
{% if can_view_details and not block_status.blocked_by_viewer and not block_status.blocked_viewer %}
<form method="post" action="/users/{{ profile.username }}/follow">
<input type="hidden" name="action" value="{% if is_following_user %}unfollow{% else %}follow{% endif %}">
<button class="button {% if is_following_user %}button-secondary{% endif %}" type="submit">{% if is_following_user %}{{ _('Nutzer nicht mehr folgen') }}{% else %}{{ _('Nutzer folgen') }}{% endif %}</button>
</form>
{% endif %}
{% if not block_status.blocked_by_viewer and not block_status.blocked_viewer %}
{% if (user.is_admin or profile.is_admin) and (not friendship or friendship.status != 'accepted') %}
<a class="button" href="/messages/{{ profile.username }}">{{ _('Nachricht senden') }}</a>