From a7e9ca5093646f8ce5c6d8e546c7552d79c3e291 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Sun, 27 Feb 2022 18:30:42 +0100
Subject: [PATCH] Gallery done #226

---
 .../blocks/templates/gallery/_edit.html.erb         | 13 -------------
 .../blocks/templates/gallery/_show.html.erb         |  1 -
 .../blocks/templates/gallery/_static.html.erb       |  2 --
 3 files changed, 16 deletions(-)

diff --git a/app/views/admin/communication/blocks/templates/gallery/_edit.html.erb b/app/views/admin/communication/blocks/templates/gallery/_edit.html.erb
index 6f63b728e..a609cdc0d 100644
--- a/app/views/admin/communication/blocks/templates/gallery/_edit.html.erb
+++ b/app/views/admin/communication/blocks/templates/gallery/_edit.html.erb
@@ -1,16 +1,3 @@
-
-<div class="mb-3">
-  <label  aria-label="Title"
-          for="title">
-          Title
-  </label>
-  <input  class="form-control form-control-lg"
-          type="text"
-          v-model="data.title"
-          placeholder="Type gallery title here"
-          id="title">
-</div>
-
 <a  class="<%= button_classes('mb-4') %>"
     v-on:click="data.elements.push({alt: '', file: {}})">
     Add image
diff --git a/app/views/admin/communication/blocks/templates/gallery/_show.html.erb b/app/views/admin/communication/blocks/templates/gallery/_show.html.erb
index 420ed90b3..279122296 100644
--- a/app/views/admin/communication/blocks/templates/gallery/_show.html.erb
+++ b/app/views/admin/communication/blocks/templates/gallery/_show.html.erb
@@ -1,5 +1,4 @@
 <% if @block.data %>
-  <h2><%= @block.data['title'] %></h2>
   <div class="row">
   <% @block.data['elements'].each do |image| %>
       <div class="col-xxl-2 col-xl-3 col-6">
diff --git a/app/views/admin/communication/blocks/templates/gallery/_static.html.erb b/app/views/admin/communication/blocks/templates/gallery/_static.html.erb
index 49ebec44b..00fd58c3d 100644
--- a/app/views/admin/communication/blocks/templates/gallery/_static.html.erb
+++ b/app/views/admin/communication/blocks/templates/gallery/_static.html.erb
@@ -1,5 +1,3 @@
-      title: >
-          <%= prepare_text_for_static block.data['title'] %>
       images:
 <% if block.data.has_key?('elements') %>
 <% block.data['elements'].each do |image|
-- 
GitLab