diff --git a/.travis.yml b/.travis.yml index 85f093bd31..1d93de15b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ python: env: global: - VERSION="9.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" + - WEBSITE_REPO="1" - TRANSIFEX_USER='transbot@odoo-community.org' - WEBSITE_REPO="1" - secure: eNfbQI7Pkp3mjTFQgjrVVldmyE/Yn3+iCMVykhXppC85dJaCFMpjwPUfZa7p38tnnH7jhng2JL2tAXnJ4uOry0B3m9xYR7fNYXg/9uj1988FHvpDhfDFEKcMF8s70mr11HRijj6U8p6WDt/0ygD6aZ0LJzWzxhMFecFavOb6XOw= diff --git a/website_snippet_marginless_gallery/README.rst b/website_snippet_marginless_gallery/README.rst new file mode 100644 index 0000000000..017763d789 --- /dev/null +++ b/website_snippet_marginless_gallery/README.rst @@ -0,0 +1,89 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :alt: License: LGPL-3 + +========================== +Marginless Gallery Snippet +========================== + +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. + +.. image:: ./images/marginless_gallery.png + :alt: Marginless gallery + +Usage +===== + +To use this module, you need to: + +* Edit any page in your website. +* Go to *Insert blocks > Features*. +* Drag the *Marginless Gallery* snippet anywhere in your page. +* Choose a fixed height for all your images. This is required to maintain a + solid layout. Must be a number. + * If you still do not want the fixed height (maybe because your theme + applies it), just leave blank and press *Continue*. + +To change images, you need to: + +* Select any image block in the snippet you just created. +* Go to *Customize > Background* and choose any background you want. + * Backgrounds will be centered and cover the whole element in any layout. + +To change the images height, you need to: + +* Select any block inside the snippet you just created. +* Go to the top parent. +* Go to *Customize > Change Images Height*. +* Input a number and press *Continue*. + +To avoid trimming the images, you need to: + +* Select any block inside the snippet you just created. +* Go to the top parent. +* Go to *Customize > Do not trim images*. + +Known issues / Roadmap +====================== + +* If you do not set a fixed height to all your images in the snippet, it will + get an ugly layout. Right now we manually set the height, but whenever + Bootstrap 4 starts being used in Odoo with its flexbox support, this will not + be needed anymore. + +* Improve it using `Masonry `_ like the + `Graphene theme `_ does. It + should allow to set arbitrary heights to images with a beautiful 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 smashing it by providing a detailed and +welcomed feedback `here +`_. + +Credits +======= + +Contributors +------------ + +* Jairo Llopis + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit https://odoo-community.org. 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/__openerp__.py b/website_snippet_marginless_gallery/__openerp__.py new file mode 100644 index 0000000000..cba260be30 --- /dev/null +++ b/website_snippet_marginless_gallery/__openerp__.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +{ + "name": "Marginless Gallery Snippet", + "summary": "Add a snippet to have a marginless image gallery", + "version": "9.0.1.0.0", + "category": "Website", + "license": "LGPL-3", + "website": "https://odoo-community.org/project/website-maintainers-79", + "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/assets.xml", + "views/snippets.xml", + ], + "demo": [ + "demo/assets.xml", + ], +} diff --git a/website_snippet_marginless_gallery/demo/assets.xml b/website_snippet_marginless_gallery/demo/assets.xml new file mode 100644 index 0000000000..9793774278 --- /dev/null +++ b/website_snippet_marginless_gallery/demo/assets.xml @@ -0,0 +1,13 @@ + + + + +