diff --git a/app/assets/images/communication/blocks/templates/posts/alternate.png b/app/assets/images/communication/blocks/templates/posts/alternate.png new file mode 100644 index 0000000000000000000000000000000000000000..0e3517906860abe0f2bf69cde13750917ac839c9 Binary files /dev/null and b/app/assets/images/communication/blocks/templates/posts/alternate.png differ diff --git a/app/models/communication/block/template/post.rb b/app/models/communication/block/template/post.rb index eb7b6ec57c559f42777e19c5684585cd68fb2587..9105702bf99ea24869e3e7cba7f4aeb8b8e3b1a8 100644 --- a/app/models/communication/block/template/post.rb +++ b/app/models/communication/block/template/post.rb @@ -1,7 +1,7 @@ class Communication::Block::Template::Post < Communication::Block::Template::Base has_elements - has_layouts [:grid, :list, :highlight] + has_layouts [:grid, :list, :highlight, :alternate] has_component :mode, :option, options: [:all, :category, :selection] has_component :posts_quantity, :number, options: 3 has_component :category_id, :category diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index 609c93f67e84e8da98d5e20087a25fb09b7d648c..a824d21d319bd85dbdd393f266dac15cbde8b052 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -541,6 +541,9 @@ en: list: label: List description: A list of posts with small images the same width. + alternate: + label: Alternate + description: Posts either on the left or on the right, composing a graphically light page. edit: add_post: Add post mode: diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index bd8bb87a8481ec6b37a48da42e9c09b7496ca8e3..6339cabf5dd6657d8dd293cf094db9c3806d9797 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -541,6 +541,9 @@ fr: list: label: Liste description: Une liste d'articles avec de petites images à la même largeur. + alternate: + label: Alternance + description: Une alternance très légère graphiquement d'articles entre la gauche et la droite de la page. edit: add_post: Ajouter un article mode: