Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mise en page "Grand" pour les blocs galeries #1733

Merged
merged 4 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading