From d611eeebdf382520f5de7955565f4545f818fd7b Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Mon, 22 Feb 2016 17:53:48 +0100 Subject: [PATCH 1/5] [8.0][website_mail_snippet_vertical_resize_base] Resize any element This commit extract the vertical resizing plugin part from the `website_mail_snippet_responsive` module into its own module, to allow reusing it easily. --- .../__openerp__.py | 3 +- .../views/snippet_hr.xml | 12 --- .../README.rst | 72 ++++++++++++++++++ .../__init__.py | 0 .../__openerp__.py | 21 +++++ .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/src/js/vertical_resize.js | 0 .../views/assets.xml | 2 +- .../views/snippets.xml | 24 ++++++ 9 files changed, 119 insertions(+), 15 deletions(-) create mode 100644 website_mail_snippet_vertical_resize_base/README.rst create mode 100644 website_mail_snippet_vertical_resize_base/__init__.py create mode 100644 website_mail_snippet_vertical_resize_base/__openerp__.py create mode 100644 website_mail_snippet_vertical_resize_base/static/description/icon.png rename {website_mail_snippet_responsive => website_mail_snippet_vertical_resize_base}/static/src/js/vertical_resize.js (100%) rename {website_mail_snippet_responsive => website_mail_snippet_vertical_resize_base}/views/assets.xml (78%) create mode 100644 website_mail_snippet_vertical_resize_base/views/snippets.xml diff --git a/website_mail_snippet_responsive/__openerp__.py b/website_mail_snippet_responsive/__openerp__.py index 8435d9db..bf27addd 100644 --- a/website_mail_snippet_responsive/__openerp__.py +++ b/website_mail_snippet_responsive/__openerp__.py @@ -15,10 +15,9 @@ "images/snippets.png", ], "depends": [ - "website_mail", + "website_mail_snippet_vertical_resize_base", ], "data": [ - "views/assets.xml", "views/templates.xml", "views/snippet_1_col.xml", "views/snippet_2_cols.xml", diff --git a/website_mail_snippet_responsive/views/snippet_hr.xml b/website_mail_snippet_responsive/views/snippet_hr.xml index f5cffafe..42aa0e73 100644 --- a/website_mail_snippet_responsive/views/snippet_hr.xml +++ b/website_mail_snippet_responsive/views/snippet_hr.xml @@ -7,18 +7,6 @@