From b679d833da90b5025711de4564f4a782328c9e1e Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 12 Jan 2022 13:37:04 +0100 Subject: [PATCH] display location type between parentheses for actions --- .../Resources/views/Activity/_list_item.html.twig | 4 ++-- .../Resources/views/Activity/show.html.twig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig index 7b46ffb67..bb4c6fd16 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig @@ -34,8 +34,8 @@

{{ 'location'|trans }}

- {{ activity.location.locationType.title|localize_translatable_string }} {{ activity.location.name }} + ({{ activity.location.locationType.title|localize_translatable_string }})

@@ -57,7 +57,7 @@

{{ 'Referrer'|trans }}

- {{ activity.user.usernameCanonical|chill_entity_render_string|capitalize }} + {{ activity.user|chill_entity_render_string|capitalize }}

diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig index 9faacd430..633493104 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig @@ -34,7 +34,7 @@
{{ 'Referrer'|trans|capitalize }}
-
{{ entity.user }}
+
{{ entity.user|chill_entity_render_box }}
{%- if entity.scope -%}
{{ 'Scope'|trans }}
@@ -103,8 +103,8 @@
{% if entity.location is not null %}

- {{ entity.location.locationType.title|localize_translatable_string }} {{ entity.location.name }} + ({{ entity.location.locationType.title|localize_translatable_string }})

{{ entity.location.address|chill_entity_render_box }}
{% else %}