From a1e49eab5eedee4047b3000d863a27bd875716ea Mon Sep 17 00:00:00 2001 From: Diego Steiner Date: Thu, 21 Sep 2023 14:19:00 +0200 Subject: [PATCH] add correct translations to siblings_in_context --- app/views/people/_details_pbs.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/people/_details_pbs.html.haml b/app/views/people/_details_pbs.html.haml index cfc28c881..406750dfd 100644 --- a/app/views/people/_details_pbs.html.haml +++ b/app/views/people/_details_pbs.html.haml @@ -11,9 +11,10 @@ - siblings_in_context = entry.siblings_in_context(sibling_context) = labeled(t('people.fields_pbs.siblings_in_context', context: sibling_context)) do - if siblings_in_context.any? - = simple_list siblings_in_context do |sibling_role| + = t('global.yes') + = simple_list(siblings_in_context, class: 'unstyled mb-0') do |sibling_role| - assoc_link(sibling_role.person) - else - = t('global.associations.no_entry') + = t('global.no') = render_attrs(entry, :entry_date, :leaving_date)