From 971f8cab6b1f5cf81b9ab59b2c76873de67c80ac Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 18 Dec 2024 15:57:43 +0100 Subject: [PATCH] Fix #2441 --- .../communication/blocks/templates/persons/_show.html.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/admin/communication/blocks/templates/persons/_show.html.erb b/app/views/admin/communication/blocks/templates/persons/_show.html.erb index 2b6412589..bf87b08eb 100644 --- a/app/views/admin/communication/blocks/templates/persons/_show.html.erb +++ b/app/views/admin/communication/blocks/templates/persons/_show.html.erb @@ -18,11 +18,16 @@ else person_link = '#' end + begin + title_with_optional_link = link_to_if block.template.option_link, person_l10n, person_link + rescue + title_with_optional_link = person_l10n + end %> <article class="person" itemscope itemtype="https://schema.org/Person"> <div class="description"> <h<%= heading_level %>> - <%= link_to_if block.template.option_link, person_l10n, person_link %> + <%= title_with_optional_link %> </h<%= heading_level %>> <p itemprop="jobTitle"> <%= element.role %> -- GitLab