From d4a926858ac0c35a558c55eedf37bc2c61e4cd18 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 8 Jun 2022 08:34:23 +0200 Subject: [PATCH] doc --- .../blocks/components/image/_static.html.erb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/admin/communication/blocks/components/image/_static.html.erb b/app/views/admin/communication/blocks/components/image/_static.html.erb index 83fe9086e..b0e4e893b 100644 --- a/app/views/admin/communication/blocks/components/image/_static.html.erb +++ b/app/views/admin/communication/blocks/components/image/_static.html.erb @@ -1,13 +1,19 @@ <% blob = component.blob list ||= false +# No list +# image: +# id: "6481e276-23c7-43bb-84aa-87820706ef27" +# file: "6481e276-23c7-43bb-84aa-87820706ef27" +# List +# - id: "1372a56a-8859-45b9-a7db-d6f9c0e1f38f" +# file: "1372a56a-8859-45b9-a7db-d6f9c0e1f38f return unless blob %> <% if list %> <%= indentation %>- id: "<%= blob.id %>" -<%= indentation %> file: "<%= blob.id %>" <% else %> <%= indentation %><%= property %>: <%= indentation %> id: "<%= blob.id %>" -<%= indentation %> file: "<%= blob.id %>" <% end %> +<%= indentation %> file: "<%= blob.id %>" -- GitLab