[REV] website: new blog demo snippets
authorRichard Mathot <rim@openerp.com>
Wed, 1 Oct 2014 10:47:33 +0000 (12:47 +0200)
committerRichard Mathot <rim@openerp.com>
Wed, 1 Oct 2014 10:47:33 +0000 (12:47 +0200)
This reverts commit 7246b8105bdebdd175ca82d5018f68e15e60eb43.

addons/website/static/src/css/snippets.css
addons/website/static/src/css/snippets.sass
addons/website/static/src/img/blocks/block_demo_blog.jpg [deleted file]
addons/website/static/src/img/odoo.jpg [deleted file]
addons/website/static/src/js/website.snippets.editor.js
addons/website/views/snippets.xml

index f787a10..a873e3d 100644 (file)
@@ -795,20 +795,3 @@ table.table_desc tr td:last-child{
 .oe_snippet.o_block_quotes_slider .oe_snippet_thumbnail_img {
   background-image: url("/website/static/src/img/blocks/block_quotes_slider.png");
 }
-
-/* Blog Demo Snippet */
-.oe_snippet.o_block_demo_blog .oe_snippet_thumbnail_img {
-  background-image: url("/website/static/src/img/blocks/block_demo_blog.jpg");
-}
-
-.oe_demo_blog .oe_blog_demo_content {
-  height: 200px;
-  width: 400px;
-  padding: 5px;
-  margin-bottom: 30px;
-  float: right;
-}
-.oe_demo_blog .oe_blog_demo_img {
-  width: 100%;
-  height: 180px;
-}
index 1a6004b..2dd267b 100644 (file)
@@ -636,18 +636,3 @@ table.table_desc tr td
     &.o_block_quotes_slider .oe_snippet_thumbnail_img
         background-image: url('/website/static/src/img/blocks/block_quotes_slider.png')
 // }}}
-
-/* Blog Demo Snippet */
-.oe_snippet.o_block_demo_blog .oe_snippet_thumbnail_img
-    background-image: url("/website/static/src/img/blocks/block_demo_blog.jpg")
-
-.oe_demo_blog
-    .oe_blog_demo_content
-        height: 200px
-        width: 400px
-        padding: 5px
-        margin-bottom: 30px
-        float: right
-    .oe_blog_demo_img
-        width: 100%
-        height: 180px
diff --git a/addons/website/static/src/img/blocks/block_demo_blog.jpg b/addons/website/static/src/img/blocks/block_demo_blog.jpg
deleted file mode 100644 (file)
index 8467746..0000000
Binary files a/addons/website/static/src/img/blocks/block_demo_blog.jpg and /dev/null differ
diff --git a/addons/website/static/src/img/odoo.jpg b/addons/website/static/src/img/odoo.jpg
deleted file mode 100644 (file)
index e9c5ac2..0000000
Binary files a/addons/website/static/src/img/odoo.jpg and /dev/null differ
index 85c37a1..eeb8261 100644 (file)
         },
     });
 
-    website.snippet.options.demo_blog = website.snippet.Option.extend({
-        set_active: function () {
-            var classes = _.uniq((this.$target.find('.oe_blog_demo_content').attr("class") || '').split(/\s+/));
-            this.$el.find('[data-select_class]')
-                .add(this.$el)
-                .filter('[data-select_class]')
-                .removeClass("active")
-                .filter('[data-select_class="' + classes.join('"], [data-select_class="') + '"]')
-                .addClass("active");
-        },
-        select_class: function (type, value, $li) {
-            var $lis = this.$el.find('[data-select_class]').add(this.$el).filter('[data-select_class]');
-
-            var classes = $lis.map(function () {return $(this).data('select_class');}).get();
-            var $img = this.$target.find('.oe_blog_demo_content');
-            $img.removeClass(classes.join(" "));
-            if(value) $img.addClass(value);
-        },
-    });
-
     website.snippet.Editor = openerp.Class.extend({
         init: function (BuildingBlock, dom) {
             this.BuildingBlock = BuildingBlock;
index c05f0bd..4f0b5b7 100644 (file)
             </div>
         </section>
     </div>
-    <div name="Blog" class="o_block_demo_blog">
-        <section class="oe_snippet_body oe_demo_blog readable">
-            <div class="oe_blog_demo_content">
-                <a href="https://demo.odoo.com/">
-                    <img class="oe_blog_demo_img" src="/website/static/src/img/odoo.jpg"/>
-                </a>
-                <h5 class="text-center">
-                    <small>We prepared a page dedicated to
-                    <a href="https://www.odoo.com/page/brand-assets">brand assets</a>
-                    , so you can have access to everything you need.</small></h5>
-            </div>
-            <p>
-                What a day it was yesterday - such a big day for us!
-                In case you still feel a bit puzzled about all
-                of our yesterday's announcements, here is a little
-                summary for you. We have decided to change the
-                name because "OpenERP" didn't reflect the offering
-                of the company anymore. With our newest apps, such
-                as Website Builder, PoS or eCommerce, we have
-                moved beyond the ERP territory. But don't worry,
-                Odoo is and always will be fully open source. You can
-                read more about the new name here.We have also
-                prepared a short FAQ to explain all these changes to all of you.
-            </p>
-        </section>
-    </div>
 </div>
 
 <div id="snippet_feature" class="tab-pane">
         <li data-clear_style=""><a>Reset Transformation</a></li>
     </div>
 
-    <div data-js="demo_blog"
-        data-selector=".oe_demo_blog"
-        data-drop-in="#blog_content">
-        <li class="dropdown-submenu">
-            <a tabindex="-1" href="#">Picture Position</a>
-            <ul class="dropdown-menu">
-                <li data-select_class="pull-right"><a>On the Right</a></li>
-                <li data-select_class="pull-left"><a>On the Left</a></li>
-            </ul>
-        </li>
-    </div>
 </template>