[CARDS][Note] Removed note's complementary info related to the current user everywhere, which was criticized from being redundant
This commit is contained in:
parent
5d0b8930e1
commit
67a2387b31
@ -132,15 +132,25 @@
|
|||||||
{% set actor_count = complementary_info['actors'] | length %}
|
{% set actor_count = complementary_info['actors'] | length %}
|
||||||
{% set counter = 0 %}
|
{% set counter = 0 %}
|
||||||
{% for complementary_info_actor in complementary_info['actors'] %}
|
{% for complementary_info_actor in complementary_info['actors'] %}
|
||||||
|
{% if app.user is not null %}
|
||||||
|
{% if complementary_info_actor is defined and complementary_info_actor.getNickname() != app.user.nickname %}
|
||||||
|
<a href="{{ complementary_info_actor.getUrl() }}">{{ complementary_info_actor.getNickname() }}{% if actor_count > 1 and counter < actor_count - 2 %}{{ ', ' | trans }}{% endif %}</a>
|
||||||
|
{% if counter == actor_count - 2 %}
|
||||||
|
{{ ' and ' | trans }}
|
||||||
|
{% endif %}
|
||||||
|
{% set counter = counter + 1 %}
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
{% if complementary_info_actor is defined %}
|
{% if complementary_info_actor is defined %}
|
||||||
<a href="{{ complementary_info_actor.getUrl() }}">{{ complementary_info_actor.getNickname() }}{% if actor_count > 1 and counter < actor_count - 2 %}{{ ', ' | trans }}{% endif %}</a>
|
<a href="{{ complementary_info_actor.getUrl() }}">{{ complementary_info_actor.getNickname() }}{% if actor_count > 1 and counter < actor_count - 2 %}{{ ', ' | trans }}{% endif %}</a>
|
||||||
{% if counter == actor_count - 2 %}
|
{% if counter == actor_count - 2 %}
|
||||||
{{ ' and ' | trans }}
|
{{ ' and ' | trans }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
{% set counter = counter + 1 %}
|
{% set counter = counter + 1 %}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if complementary_info['action'] is defined and not null %}
|
{% if complementary_info['action'] is defined and not null and counter > 0 %}
|
||||||
{% if counter > 1 %}
|
{% if counter > 1 %}
|
||||||
{{ ' have ' | trans }}
|
{{ ' have ' | trans }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
Reference in New Issue
Block a user