diff --git a/addons/website/models/website.py b/addons/website/models/website.py index 87dbb5b16ad..8703c6c5f32 100644 --- a/addons/website/models/website.py +++ b/addons/website/models/website.py @@ -78,7 +78,11 @@ def is_multilang_url(path, langs=None): def slugify(s, max_length=None): if slugify_lib: - return slugify_lib.slugify(s, max_length) + # There are 2 different libraries only python-slugify is supported + try: + return slugify_lib.slugify(s, max_length=max_length) + except TypeError: + pass spaceless = re.sub(r'\s+', '-', s) specialless = re.sub(r'[^-_A-Za-z0-9]', '', spaceless) return specialless[:max_length] diff --git a/addons/website_mail/static/src/img/blocks/block_three_columns.png b/addons/website_mail/static/src/img/blocks/block_three_columns.png new file mode 100644 index 00000000000..dd50e0336d3 Binary files /dev/null and b/addons/website_mail/static/src/img/blocks/block_three_columns.png differ diff --git a/addons/website_mail/static/src/img/blocks/block_two_columns.png b/addons/website_mail/static/src/img/blocks/block_two_columns.png new file mode 100644 index 00000000000..55a3f0c1c99 Binary files /dev/null and b/addons/website_mail/static/src/img/blocks/block_two_columns.png differ diff --git a/addons/website_mail/views/snippets.xml b/addons/website_mail/views/snippets.xml index 89bac693437..35932f6f7c3 100644 --- a/addons/website_mail/views/snippets.xml +++ b/addons/website_mail/views/snippets.xml @@ -5,7 +5,7 @@
+ + A Great Headline +++ A good subtitle ++ |
+
+
+
+
+
+
+
+ |
+
-
-
- Sell Online. Easily.- - |
-
- - A Great Headline --- A good subtitle -- |
-
-
-
-
-
-
-
- |
-
-
-
+ - | + | -
- A Punchy Headline+ | + | ||||||
- - | -|||||||
- A Small Subtitle+ |
+ Feature One+ - |
+
+ Feature Two+
-
+
Three Columns
@@ -276,12 +235,69 @@
+
+
+
+ Separator
+
+
+
+
+
+
+
+
+
+ Big Picture
+
+
+
+
@@ -373,6 +389,30 @@
+
+
+
+
+
+ Big Message
+
+
+
+
|