Skip to content

Commit

Permalink
[MIG] website_snippet_marginless_gallery: Migration to version 17.0
Browse files Browse the repository at this point in the history
TT51978
  • Loading branch information
pilarvargas-tecnativa committed Dec 2, 2024
1 parent 398329a commit 9f209c5
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 53 deletions.
4 changes: 2 additions & 2 deletions website_snippet_marginless_gallery/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Marginless Gallery Snippet",
"summary": "Add a snippet to have a marginless image gallery",
"version": "15.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Website",
"license": "LGPL-3",
"website": "https://github.com/OCA/website",
Expand All @@ -18,7 +18,7 @@
"data": ["views/snippets.xml"],
"assets": {
"web.assets_tests": [
"/website_snippet_marginless_gallery/static/src/tests/tours/*.js"
"/website_snippet_marginless_gallery/static/src/tests/tours/*.esm.js"
]
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/** @odoo-module */

/* Copyright 2015-2017 Tecnativa - Jairo Llopis <[email protected]>
* 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 wTourUtils from '@website/js/tours/tour_utils';

wTourUtils.registerWebsitePreviewTour(
"marginless_gallery",
{
test: true,
url: "/",
edition: true,
},
() => [
wTourUtils.dragNDrop({id: "s_marginless_gallery", name: "Marginless Gallery"}),
wTourUtils.clickOnSnippet({
id: "marginless-gallery",
name: "Marginless Gallery",
}),
...wTourUtils.clickOnSave(),
]
);

This file was deleted.

34 changes: 18 additions & 16 deletions website_snippet_marginless_gallery/views/snippets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
<template id="s_marginless_gallery" name="Marginless Gallery">
<section class="marginless-gallery pt32 pb32 text-center">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<div class="row d-flex align-items-stretch">
<div
class="o_colored_level o_cc o_cc1 col-lg-12 pb32 pt32 text-center"
>
<h2 class="o_default_snippet_text pb16">
<b>Our Gallery</b>
</h2>
<p class="lead o_default_snippet_text pb32">
<p class="lead o_default_snippet_text pb16">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do.
</p>
</div>
<section
class="col-lg-3 col-12 pt32 pb32 oe_img_bg"
class="col-lg-3 pt32 pb32 oe_img_bg"
style="background-image: url('/website/static/src/img/library/bridge.jpg');"
>
<div>
Expand All @@ -26,7 +28,7 @@
</p>
</div>
</section>
<section class="col-lg-3 col-12 pt32 pb32 bg-primary">
<section class="col-lg-3 pt32 pb32 o_colored_level o_cc o_cc4">
<div>
<h4 class="o_default_snippet_text">Lorem ipsum</h4>
<p class="o_default_snippet_text mb0">
Expand All @@ -35,7 +37,7 @@
</div>
</section>
<section
class="col-lg-3 col-12 pt32 pb32 oe_img_bg"
class="col-lg-3 pt32 pb32 oe_img_bg"
style="background-image: url('/website/static/src/img/library/mobile.jpg');"
>
<div>
Expand All @@ -45,47 +47,47 @@
</p>
</div>
</section>
<section class="col-lg-3 col-12 pt32 pb32 bg-o-color-2">
<section class="col-lg-3 pt32 pb32 o_colored_level o_cc o_cc3">
<div>
<h4 class="o_default_snippet_text">Lorem ipsum</h4>
<p class="o_default_snippet_text mb0">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do.
</p>
</div>
</section>
<section class="col-lg-3 col-12 pt32 pb32 bg-o-color-3">
<section class="col-lg-3 pt32 pb32 o_colored_level o_cc o_cc2">
<div>
<h4 class="o_default_snippet_text">Lorem ipsum</h4>
<p class="o_default_snippet_text mb0">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do.
</p>
</div>
</section>
<section class="col-lg-3 col-12 pt32 pb32 bg-o-color-5">
<section class="col-lg-3 pt32 pb32 o_colored_level o_cc o_cc5">
<div>
<h4 class="o_default_snippet_text">Lorem ipsum</h4>
<p class="o_default_snippet_text mb0">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do.
</p>
</div>
</section>
<section class="col-lg-3 col-12 pt32 pb32 bg-o-color-4">
<section class="col-lg-3 pt32 pb32 o_colored_level o_cc o_cc1">
<div>
<h4 class="o_default_snippet_text">Lorem ipsum</h4>
<p class="o_default_snippet_text mb0">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do.
</p>
</div>
</section>
<section class="col-lg-3 col-12 pt32 pb32 bg-primary">
<section class="col-lg-3 pt32 pb32 o_colored_level o_cc o_cc4">
<div>
<h4 class="o_default_snippet_text">Lorem ipsum</h4>
<p class="o_default_snippet_text mb0">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do.
</p>
</div>
</section>
<section class="col-lg-3 col-12 pt32 pb32 bg-o-color-2">
<section class="col-lg-3 pt32 pb32 o_colored_level o_cc o_cc3">
<div>
<h4 class="o_default_snippet_text">Lorem ipsum</h4>
<p class="o_default_snippet_text mb0">
Expand All @@ -94,7 +96,7 @@
</div>
</section>
<section
class="col-lg-3 col-12 pt32 pb32 oe_img_bg"
class="col-lg-3 pt32 pb32 oe_img_bg"
style="background-image: url('/website/static/src/img/library/shop.jpg');"
>
<div>
Expand All @@ -104,7 +106,7 @@
</p>
</div>
</section>
<section class="col-lg-3 col-12 pt32 pb32 bg-o-color-3">
<section class="col-lg-3 pt32 pb32 o_colored_level o_cc o_cc2">
<div>
<h4 class="o_default_snippet_text">Lorem ipsum</h4>
<p class="o_default_snippet_text mb0">
Expand All @@ -113,7 +115,7 @@
</div>
</section>
<section
class="col-lg-3 col-12 pt32 pb32 oe_img_bg"
class="col-lg-3 pt32 pb32 oe_img_bg"
style="background-image: url('/website/static/src/img/library/wine.jpg');"
>
<div>
Expand All @@ -128,7 +130,7 @@
</section>
</template>
<template id="snippets" inherit_id="website.snippets">
<xpath expr="//div[@id='snippet_feature']//div[hasclass('o_panel_body')]">
<xpath expr="//div[@id='snippet_structure']//div[hasclass('o_panel_body')]">
<t
t-snippet="website_snippet_marginless_gallery.s_marginless_gallery"
t-thumbnail="/website_snippet_marginless_gallery/static/description/s_website_marginless_gallery.png"
Expand Down

0 comments on commit 9f209c5

Please sign in to comment.