Skip to content

Commit 969d2ec

Browse files
OstafinLciastektk
andauthored
IBX-9918: Added parameter is_link in twig user component (#1541)
* IBX-9918: Added parameter is_link in twig user component * Update src/bundle/Resources/views/themes/admin/ui/component/user/user.html.twig Co-authored-by: Tomasz Kryszan <tomasz.kryszan@ez.no> --------- Co-authored-by: Tomasz Kryszan <tomasz.kryszan@ez.no>
1 parent dc15657 commit 969d2ec

File tree

1 file changed

+2
-1
lines changed
  • src/bundle/Resources/views/themes/admin/ui/component/user

1 file changed

+2
-1
lines changed

src/bundle/Resources/views/themes/admin/ui/component/user/user.html.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% set user_name = ibexa_content_name(user) %}
2+
{% set is_link = is_link is defined ? is_link : true %}
23

34
{% if user_name_extra_data is defined %}
45
{% set user_name = user_name ~ ' ' ~ user_name_extra_data %}
@@ -20,7 +21,7 @@
2021
{% set user_path = path('ibexa.user.profile.view', { userId: user.id }) %}
2122
{% endif %}
2223

23-
{% if user_path is defined %}
24+
{% if user_path is defined and is_link %}
2425
<a href="{{ user_path }}" class="ibexa-user-name__text">{{ user_name }}</a>
2526
{% else %}
2627
<span class="ibexa-user-name__text">{{ user_name }}</span>

0 commit comments

Comments
 (0)