From 91f0904bd3ceacbadcb849a1f6cd3d5b683966aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Andr=C3=A9=20Boissinot?= <pierreandre.boissinot@noesya.coop> Date: Tue, 28 May 2024 18:03:59 +0200 Subject: [PATCH] Add external to blocks links statics (#1936) * add external param to bloks links statics * better * remove empty line * remove empty line * removes ssss --- .../admin/communication/blocks/templates/links/_static.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/admin/communication/blocks/templates/links/_static.html.erb b/app/views/admin/communication/blocks/templates/links/_static.html.erb index 8f04e19a9..a6c09b28c 100644 --- a/app/views/admin/communication/blocks/templates/links/_static.html.erb +++ b/app/views/admin/communication/blocks/templates/links/_static.html.erb @@ -4,5 +4,6 @@ <%= block_component_static block, :title, template: element, depth: 4, list: true %> <%= block_component_static block, :description, template: element, depth: 5 %> <%= block_component_static block, :url, template: element, depth: 5 %> + external: <%= !(element.url.start_with?('/') || element.url.start_with?(@website.url)) %> <%= block_component_static block, :image, template: element, depth: 5 %> <% end %> -- GitLab