Skip to content

Commit

Permalink
Mise en page "Grand" pour les blocs galeries (#1733)
Browse files Browse the repository at this point in the history
* layout grand

* large

* large

---------

Co-authored-by: Sébastien Gaya <sebastien.gaya@gmail.com>
  • Loading branch information
arnaudlevy and SebouChu committed Apr 2, 2024
1 parent 01deeae commit 13d0021
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/models/communication/block/template/gallery.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Communication::Block::Template::Gallery < Communication::Block::Template::Base

has_elements
has_layouts [:grid, :carousel]
has_layouts [:grid, :carousel, :large]
has_component :description, :rich_text

def empty?
Expand Down
5 changes: 4 additions & 1 deletion config/locales/communication/contents/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ en:
label: Grid
large:
description: Each event is presented in majesty, across the full width available, with a large image.
label: Grand
label: Large
list:
description: A list of events with dates, small images, all the same width.
label: List
Expand Down Expand Up @@ -291,6 +291,9 @@ en:
grid:
description: Images are presented as a grid, from left to right and top to bottom, with constant width.
label: Grid
large:
description: The images are presented one after the other, using the full width for horizontals and a large width for verticals.
label: Large
image:
description: An image with its alternative description, a credit and a text.
edit:
Expand Down
3 changes: 3 additions & 0 deletions config/locales/communication/contents/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ fr:
grid:
description: Les images sont présentées en grille, toutes de la même taille.
label: Grille
large:
description: Les images sont présentées l'une après l'autre, en utilisant toute la largeur pour les horizontales et une grande largeur pour les verticales.
label: Grand
image:
description: Une image avec sa description alternative accessible, son texte et son crédit.
edit:
Expand Down

0 comments on commit 13d0021

Please sign in to comment.