user pages UI: don't show user in every activity on profile and feed pages

it's redundant
pull/984/head
Ryan Barrett 2024-04-29 11:26:28 -07:00
rodzic 0e5be92f08
commit bf70ddd348
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
5 zmienionych plików z 11 dodań i 5 usunięć

Wyświetl plik

@ -952,8 +952,7 @@ class Object(StringIdModel):
"""
attrs = {'class': 'h-card u-author'}
if (self.source_protocol in ('web', 'webmention', 'ui')
and (user.key in self.users or user.key.id() in self.domains)):
if user.key in self.users or user.key.id() in self.domains:
# outbound; show a nice link to the user
return user.user_link()

Wyświetl plik

@ -3,10 +3,14 @@
{% for obj in objects %}
<li class="row h-entry">
<div class="e-content col-xs-{{ 5 if show_users else 8 }}">
{% if obj.source_protocol %}
<span class="logo">{{ PROTOCOLS[obj.source_protocol].LOGO_HTML|safe }}</span>
{% if show_activity_actors %}
{% if obj.source_protocol %}
<span class="logo">{{ PROTOCOLS[obj.source_protocol].LOGO_HTML|safe }}</span>
{% endif %}
{{ obj.actor_link(user=user)|safe }}
{% else %}
...
{% endif %}
{{ obj.actor_link(user=user)|safe }}
{{ obj.phrase|safe }}
{% if obj.url %}<a target="_blank" href="{{ obj.url }}" class="u-url">{% endif %}
{{ obj.content|default('--', true)|striptags|truncate(50) }}

Wyświetl plik

@ -1,5 +1,6 @@
{% extends "user_base.html" %}
{% set tab = "home" %}
{% set show_activity_actors = True %}
{% block subtabs %}
<div class="row">

Wyświetl plik

@ -1,5 +1,6 @@
{% extends "user_base.html" %}
{% set tab = "notifications" %}
{% set show_activity_actors = True %}
{% block subtabs %}
<div class="row">

Wyświetl plik

@ -1,5 +1,6 @@
{% extends "user_base.html" %}
{% set tab = "profile" %}
{% set show_activity_actors = False %}
{% block subtabs %}
<div class="row tabs">