diff --git a/README.md b/README.md index 95b713a634..7408977cda 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ addon | version | maintainers | summary [website_form_require_legal](website_form_require_legal/) | 19.0.1.0.1 | | Add possibility to require confirm legal terms. [website_forum_subscription](website_forum_subscription/) | 19.0.1.0.0 | | Adds a button to allow subscription from the website [website_google_tag_manager](website_google_tag_manager/) | 19.0.1.0.0 | | Add support for Google Tag Manager +[website_snippet_marginless_gallery](website_snippet_marginless_gallery/) | 19.0.1.0.0 | | Add a snippet to have a marginless image gallery [//]: # (end addons) diff --git a/setup/_metapackage/pyproject.toml b/setup/_metapackage/pyproject.toml index 96860fccae..e7861730ad 100644 --- a/setup/_metapackage/pyproject.toml +++ b/setup/_metapackage/pyproject.toml @@ -1,11 +1,12 @@ [project] name = "odoo-addons-oca-website" -version = "19.0.20260713.0" +version = "19.0.20260810.0" dependencies = [ "odoo-addon-website_cookiefirst==19.0.*", "odoo-addon-website_form_require_legal==19.0.*", "odoo-addon-website_forum_subscription==19.0.*", "odoo-addon-website_google_tag_manager==19.0.*", + "odoo-addon-website_snippet_marginless_gallery==19.0.*", ] classifiers=[ "Programming Language :: Python", diff --git a/website_snippet_marginless_gallery/README.rst b/website_snippet_marginless_gallery/README.rst new file mode 100644 index 0000000000..83dac8aadf --- /dev/null +++ b/website_snippet_marginless_gallery/README.rst @@ -0,0 +1,104 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +========================== +Marginless Gallery Snippet +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:a0a9d9acc8e90af022186aee3cddc0275b773b7c84e70963248352587a67b8b9 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github + :target: https://github.com/OCA/website/tree/19.0/website_snippet_marginless_gallery + :alt: OCA/website +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/website-19-0/website-19-0-website_snippet_marginless_gallery + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of the website module to add a new +snippet that forms a marginless gallery and allow you to create a grid +of photos that have no spaces between themselves. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +- Edit any page on your website. +- In the **Blocks** tab, click the **Images** category. +- In the dialog that opens, click the **Marginless Gallery** building + block to add it to the page. + +To change images, you need to: + +- Select any image block in the snippet you just created. +- Go to **Style > Background** and choose any background you want. +- Backgrounds will be centered and cover the whole element in any + layout. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Grupo ESOC Ingeniería de Servicios +* Tecnativa + +Contributors +------------ + +- `Tecnativa `__: + + - Jairo Llopis + - Cristina Martin R. + - Pilar Vargas + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/website `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_snippet_marginless_gallery/__init__.py b/website_snippet_marginless_gallery/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/website_snippet_marginless_gallery/__manifest__.py b/website_snippet_marginless_gallery/__manifest__.py new file mode 100644 index 0000000000..5719298dd9 --- /dev/null +++ b/website_snippet_marginless_gallery/__manifest__.py @@ -0,0 +1,24 @@ +# Copyright 2015-2017 Tecnativa - Jairo Llopis +# Copyright 2019 Tecnativa - Cristina Martin R. +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +{ + "name": "Marginless Gallery Snippet", + "summary": "Add a snippet to have a marginless image gallery", + "version": "19.0.1.0.0", + "category": "Website", + "license": "LGPL-3", + "website": "https://github.com/OCA/website", + "author": "Grupo ESOC Ingeniería de Servicios, " + "Tecnativa, " + "Odoo Community Association (OCA)", + "application": False, + "installable": True, + "images": ["images/marginless_gallery.png"], + "depends": ["website"], + "data": ["views/snippets.xml"], + "assets": { + "web.assets_tests": [ + "/website_snippet_marginless_gallery/static/src/tests/tours/*.esm.js" + ] + }, +} diff --git a/website_snippet_marginless_gallery/i18n/ca.po b/website_snippet_marginless_gallery/i18n/ca.po new file mode 100644 index 0000000000..615a9e6fb7 --- /dev/null +++ b/website_snippet_marginless_gallery/i18n/ca.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_snippet_marginless_gallery +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-02-17 18:45+0000\n" +"Last-Translator: claudiagn \n" +"Language-Team: none\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Our Gallery" +msgstr " La nostra galeria " + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum" +msgstr "Lorem ipsum" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." +msgstr "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." + +#, python-format +#~ msgid "Click Edit to start designing your homepage." +#~ msgstr "" +#~ " Feu clic a Edita per començar a dissenyar la vostra pàgina " +#~ "d'inici." + +#, python-format +#~ msgid "Drag Marginless Gallery and drop it on the page." +#~ msgstr "" +#~ "Arrossegueu Galeria sense marge i deixeu-lo anar a la pàgina." diff --git a/website_snippet_marginless_gallery/i18n/de.po b/website_snippet_marginless_gallery/i18n/de.po new file mode 100644 index 0000000000..f7f9e971c9 --- /dev/null +++ b/website_snippet_marginless_gallery/i18n/de.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_snippet_marginless_gallery +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-13 00:49+0000\n" +"PO-Revision-Date: 2023-06-20 11:08+0000\n" +"Last-Translator: Nils Coenen \n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Our Gallery" +msgstr "Unsere Gallerie" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum" +msgstr "Lorem ipsum" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +#, fuzzy +msgid "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." +msgstr "" +"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod " +"tempor incididunt ut labore et dolore magna." + +#, python-format +#~ msgid "Click Edit to start designing your homepage." +#~ msgstr "" +#~ "Klicken Sie auf Bearbeiten, um mit der Gestaltung Ihrer Homepage " +#~ "zu beginnen." + +#, python-format +#~ msgid "Drag Marginless Gallery and drop it on the page." +#~ msgstr "" +#~ "Ziehen Sie die Randlose Gallerie per Drag-and-Drop auf die Seite." + +#~ msgid "Change Images Height" +#~ msgstr "Ändere Bildhöhe" + +#~ msgid "Height for all images in gallery" +#~ msgstr "Höhe aller Bilder in der Gallerie" + +#~ msgid "Image height in pixels" +#~ msgstr "Bildhöhe in Pixeln" diff --git a/website_snippet_marginless_gallery/i18n/es.po b/website_snippet_marginless_gallery/i18n/es.po new file mode 100644 index 0000000000..545913887a --- /dev/null +++ b/website_snippet_marginless_gallery/i18n/es.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_snippet_marginless_gallery +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-13 00:49+0000\n" +"PO-Revision-Date: 2020-10-06 17:16+0000\n" +"Last-Translator: claudiagn \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10\n" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Our Gallery" +msgstr "Nuestra Galería" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum" +msgstr "Lorem ipsum" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." +msgstr "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." + +#, python-format +#~ msgid "Click Edit to start designing your homepage." +#~ msgstr "Clica Editar para empezar a diseñar tu página de entrada." + +#, python-format +#~ msgid "Drag Marginless Gallery and drop it on the page." +#~ msgstr "ArrastraGalería sin márgenes y suéltala en la página." + +#~ msgid "Change Images Height" +#~ msgstr "Cambiar la altura de las imágenes" + +#~ msgid "Do not trim images" +#~ msgstr "No recortar las imágenes" + +#~ msgid "Height for all images in gallery" +#~ msgstr "Altura para todas las imágenes de la galería" + +#~ msgid "Image height in pixels" +#~ msgstr "Altura de imagen en píxeles" diff --git a/website_snippet_marginless_gallery/i18n/fr.po b/website_snippet_marginless_gallery/i18n/fr.po new file mode 100644 index 0000000000..9d9b2c1b86 --- /dev/null +++ b/website_snippet_marginless_gallery/i18n/fr.po @@ -0,0 +1,67 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_snippet_marginless_gallery +# +# Translators: +# Quentin THEURET , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-13 00:49+0000\n" +"PO-Revision-Date: 2019-07-28 11:47+0000\n" +"Last-Translator: jcleonard2018 \n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.7.1\n" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Our Gallery" +msgstr "Notre galerie" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum" +msgstr "Lorem ipsum" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." +msgstr "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." + +#, python-format +#~ msgid "Click Edit to start designing your homepage." +#~ msgstr "" +#~ "Clique Editer pour commencer à concevoir votre page d'accueil." + +#, python-format +#~ msgid "Drag Marginless Gallery and drop it on the page." +#~ msgstr "" +#~ "Faites glisser la galerie en marge et déplacez là dans la page." + +#~ msgid "%s is not a valid value" +#~ msgstr "%sn'est pas une valeur valide" + +#~ msgid "" +#~ "All photos must have the same height or the\n" +#~ " gallery layout will be broken" +#~ msgstr "" +#~ "Toutes les photos doivent avoir la même hauteur ou \n" +#~ " l'affichage de la galerie sera cassé" + +#~ msgid "Change Images Height" +#~ msgstr "Modifier la hauteur des images" + +#~ msgid "Do not trim images" +#~ msgstr "Ne pas réduire les images" + +#~ msgid "Height for all images in gallery" +#~ msgstr "Hauteur pour toutes les images dans la galerie" + +#~ msgid "Image height in pixels" +#~ msgstr "Hauteur de l'image en pixels" diff --git a/website_snippet_marginless_gallery/i18n/it.po b/website_snippet_marginless_gallery/i18n/it.po new file mode 100644 index 0000000000..edb40a8cc6 --- /dev/null +++ b/website_snippet_marginless_gallery/i18n/it.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_snippet_marginless_gallery +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-13 00:49+0000\n" +"PO-Revision-Date: 2023-11-14 15:36+0000\n" +"Last-Translator: mymage \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Our Gallery" +msgstr "La nostra galleria" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum" +msgstr "Lorem ipsum" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." +msgstr "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." + +#, python-format +#~ msgid "Click Edit to start designing your homepage." +#~ msgstr "Fare clic su Modifica per iniziare a disegnare la homepage." + +#, python-format +#~ msgid "Drag Marginless Gallery and drop it on the page." +#~ msgstr "Trascina Galleria senza margini e rilascia nella pagina." + +#~ msgid "Change Images Height" +#~ msgstr "Cambia l'altezza delle immagini" + +#~ msgid "Do not trim images" +#~ msgstr "Non tagliare le immagini" + +#~ msgid "Height for all images in gallery" +#~ msgstr "Altezza per tutte le immagini della galleria" + +#~ msgid "Image height in pixels" +#~ msgstr "Altezza delle immagini in pixels" diff --git a/website_snippet_marginless_gallery/i18n/pt_BR.po b/website_snippet_marginless_gallery/i18n/pt_BR.po new file mode 100644 index 0000000000..c3f7fdbbaa --- /dev/null +++ b/website_snippet_marginless_gallery/i18n/pt_BR.po @@ -0,0 +1,67 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_snippet_marginless_gallery +# +# Translators: +# OCA Transbot , 2017 +# Armando Vulcano Junior , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-13 00:49+0000\n" +"PO-Revision-Date: 2019-09-03 15:23+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.8\n" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Our Gallery" +msgstr "Nossa Galeria" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum" +msgstr "Lorem ipsum" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." +msgstr "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." + +#, python-format +#~ msgid "Click Edit to start designing your homepage." +#~ msgstr "Clique em Editar para começar a criar sua página inicial." + +#, python-format +#~ msgid "Drag Marginless Gallery and drop it on the page." +#~ msgstr "Arraste a Galeria sem margens e solte-a na página." + +#~ msgid "%s is not a valid value" +#~ msgstr "%seste não é um valor válido" + +#~ msgid "" +#~ "All photos must have the same height or the\n" +#~ " gallery layout will be broken" +#~ msgstr "" +#~ "Todas as fotos devem ter a mesma altura ou o\n" +#~ " layout da galeria será quebrado" + +#~ msgid "Change Images Height" +#~ msgstr "Mude a altura da imagem" + +#~ msgid "Do not trim images" +#~ msgstr "Não corte as imagens" + +#~ msgid "Height for all images in gallery" +#~ msgstr "Altura para todas as imagens da galeria" + +#~ msgid "Image height in pixels" +#~ msgstr "Altura da imagem em pixels" diff --git a/website_snippet_marginless_gallery/i18n/ru.po b/website_snippet_marginless_gallery/i18n/ru.po new file mode 100644 index 0000000000..fb3d81f9f4 --- /dev/null +++ b/website_snippet_marginless_gallery/i18n/ru.po @@ -0,0 +1,45 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_snippet_marginless_gallery +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-13 00:49+0000\n" +"PO-Revision-Date: 2017-10-13 00:49+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Russian (https://www.transifex.com/oca/teams/23907/ru/)\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " +"(n%100>=11 && n%100<=14)? 2 : 3);\n" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Our Gallery" +msgstr "" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum" +msgstr "" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." +msgstr "" + +#~ msgid "Change Images Height" +#~ msgstr "Изменить высоту изображений" + +#~ msgid "Height for all images in gallery" +#~ msgstr "Высота для всех изображений в галерее." + +#~ msgid "Image height in pixels" +#~ msgstr "Высота изображений в пикселях" diff --git a/website_snippet_marginless_gallery/i18n/sl.po b/website_snippet_marginless_gallery/i18n/sl.po new file mode 100644 index 0000000000..bc068222ec --- /dev/null +++ b/website_snippet_marginless_gallery/i18n/sl.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_snippet_marginless_gallery +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-13 00:49+0000\n" +"PO-Revision-Date: 2017-10-13 00:49+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || " +"n%100==4 ? 2 : 3);\n" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +#, fuzzy +msgid "Our Gallery" +msgstr "Naša galerija" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum" +msgstr "Lorem ipsum" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +#, fuzzy +msgid "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." +msgstr "" +"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod " +"tempor incididunt ut labore et dolore magna." + +#~ msgid "Change Images Height" +#~ msgstr "Spremeni višino slik" + +#~ msgid "Do not trim images" +#~ msgstr "Ne obrezuj slik" + +#~ msgid "Height for all images in gallery" +#~ msgstr "Višina za vse slike v galeriji" + +#~ msgid "Image height in pixels" +#~ msgstr "Višina slik v pikslih" diff --git a/website_snippet_marginless_gallery/i18n/website_snippet_marginless_gallery.pot b/website_snippet_marginless_gallery/i18n/website_snippet_marginless_gallery.pot new file mode 100644 index 0000000000..3b8fcae5c3 --- /dev/null +++ b/website_snippet_marginless_gallery/i18n/website_snippet_marginless_gallery.pot @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_snippet_marginless_gallery +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 19.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Our Gallery" +msgstr "" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum" +msgstr "" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.s_marginless_gallery +msgid "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do." +msgstr "" + +#. module: website_snippet_marginless_gallery +#: model_terms:ir.ui.view,arch_db:website_snippet_marginless_gallery.snippets +msgid "Marginless Gallery" +msgstr "" diff --git a/website_snippet_marginless_gallery/images/marginless_gallery.png b/website_snippet_marginless_gallery/images/marginless_gallery.png new file mode 100644 index 0000000000..981ea32c6b Binary files /dev/null and b/website_snippet_marginless_gallery/images/marginless_gallery.png differ diff --git a/website_snippet_marginless_gallery/pyproject.toml b/website_snippet_marginless_gallery/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/website_snippet_marginless_gallery/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/website_snippet_marginless_gallery/readme/CONTRIBUTORS.md b/website_snippet_marginless_gallery/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..c09d565ada --- /dev/null +++ b/website_snippet_marginless_gallery/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- [Tecnativa](https://www.tecnativa.com): + - Jairo Llopis + - Cristina Martin R. + - Pilar Vargas diff --git a/website_snippet_marginless_gallery/readme/DESCRIPTION.md b/website_snippet_marginless_gallery/readme/DESCRIPTION.md new file mode 100644 index 0000000000..72d06d1020 --- /dev/null +++ b/website_snippet_marginless_gallery/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module extends the functionality of the website module to add a new +snippet that forms a marginless gallery and allow you to create a grid +of photos that have no spaces between themselves. diff --git a/website_snippet_marginless_gallery/readme/USAGE.md b/website_snippet_marginless_gallery/readme/USAGE.md new file mode 100644 index 0000000000..213a5cca66 --- /dev/null +++ b/website_snippet_marginless_gallery/readme/USAGE.md @@ -0,0 +1,12 @@ +To use this module, you need to: + +- Edit any page on your website. +- In the **Blocks** tab, click the **Images** category. +- In the dialog that opens, click the **Marginless Gallery** building block to add it to the page. + +To change images, you need to: + +- Select any image block in the snippet you just created. +- Go to **Style \> Background** and choose any background you want. +- Backgrounds will be centered and cover the whole element in any + layout. diff --git a/website_snippet_marginless_gallery/static/description/icon.png b/website_snippet_marginless_gallery/static/description/icon.png new file mode 100644 index 0000000000..b4dc7ca917 Binary files /dev/null and b/website_snippet_marginless_gallery/static/description/icon.png differ diff --git a/website_snippet_marginless_gallery/static/description/icon.svg b/website_snippet_marginless_gallery/static/description/icon.svg new file mode 100644 index 0000000000..9c79e97aba --- /dev/null +++ b/website_snippet_marginless_gallery/static/description/icon.svg @@ -0,0 +1,87 @@ + + + + + + + + + + + + image/svg+xml + + + + + + +  + + diff --git a/website_snippet_marginless_gallery/static/description/index.html b/website_snippet_marginless_gallery/static/description/index.html new file mode 100644 index 0000000000..62d5111456 --- /dev/null +++ b/website_snippet_marginless_gallery/static/description/index.html @@ -0,0 +1,455 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + + +
+ + diff --git a/website_snippet_marginless_gallery/static/src/tests/tours/website_snippet_marginless_gallery.esm.js b/website_snippet_marginless_gallery/static/src/tests/tours/website_snippet_marginless_gallery.esm.js new file mode 100644 index 0000000000..677bdc18d6 --- /dev/null +++ b/website_snippet_marginless_gallery/static/src/tests/tours/website_snippet_marginless_gallery.esm.js @@ -0,0 +1,28 @@ +/** @odoo-module */ + +/* Copyright 2015-2017 Tecnativa - Jairo Llopis + * Copyright 2019 Tecnativa - Cristina Martin R. + * Copyright 2020 Tecnativa - Alexandre D. Díaz + * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). */ + +import { + clickOnSave, + insertSnippet, + registerWebsitePreviewTour, +} from "@website/js/tours/tour_utils"; + +registerWebsitePreviewTour( + "marginless_gallery", + { + url: "/", + edition: true, + }, + () => [ + ...insertSnippet({ + id: "s_marginless_gallery", + name: "Marginless Gallery", + groupName: "Images", + }), + ...clickOnSave(), + ] +); diff --git a/website_snippet_marginless_gallery/tests/__init__.py b/website_snippet_marginless_gallery/tests/__init__.py new file mode 100644 index 0000000000..10008ff84c --- /dev/null +++ b/website_snippet_marginless_gallery/tests/__init__.py @@ -0,0 +1,3 @@ +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). + +from . import test_ui diff --git a/website_snippet_marginless_gallery/tests/test_ui.py b/website_snippet_marginless_gallery/tests/test_ui.py new file mode 100644 index 0000000000..7e44adf104 --- /dev/null +++ b/website_snippet_marginless_gallery/tests/test_ui.py @@ -0,0 +1,13 @@ +# Copyright 2015-2017 Tecnativa - Jairo Llopis +# Copyright 2019 Tecnativa - Cristina Martin R. +# Copyright 2021 Tecnativa - Alexandre D. Díaz +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). + +import odoo.tests +from odoo.tests import tagged + + +@tagged("post_install", "-at_install") +class TestUi(odoo.tests.HttpCase): + def test_admin_tour_marginless_gallery(self): + self.start_tour("/", "marginless_gallery", login="admin") diff --git a/website_snippet_marginless_gallery/views/snippets.xml b/website_snippet_marginless_gallery/views/snippets.xml new file mode 100644 index 0000000000..79489d7401 --- /dev/null +++ b/website_snippet_marginless_gallery/views/snippets.xml @@ -0,0 +1,141 @@ + + + + + +