From d73eb2c5554a23bc191e7195dca5f2eb44a9e706 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Thu, 4 Aug 2016 16:10:13 -0700 Subject: [PATCH] [IMP] website_blog: improved tour --- .../static/src/js/website.tour.banner.js | 6 +++--- .../static/src/js/website.tour.blog.js | 20 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/addons/website/static/src/js/website.tour.banner.js b/addons/website/static/src/js/website.tour.banner.js index d62418f4545..8c3dfe6aa09 100644 --- a/addons/website/static/src/js/website.tour.banner.js +++ b/addons/website/static/src/js/website.tour.banner.js @@ -12,16 +12,16 @@ odoo.define("website.tour.banner", function (require) { url: "/", }, [{ trigger: "a[data-action=edit]", - content: _t("Every page of your website can be modified through the Edit button."), + content: _t("Click Edit to start designing your homepage."), position: "bottom", }, { trigger: "#snippet_structure .oe_snippet:eq(1) .oe_snippet_thumbnail", - content: _t("Drag the Cover block and drop it in your page."), + content: _t("Drag the Cover block and drop it in your page."), position: "bottom", run: "drag_and_drop", }, { trigger: "#wrapwrap .s_text_block_image_fw h2", - content: _t("Click in the title text and start editing it."), + content: _t("Click on a text to start editing it. It's that easy to edit your content!"), position: "left", width: 150, run: "text", diff --git a/addons/website_blog/static/src/js/website.tour.blog.js b/addons/website_blog/static/src/js/website.tour.blog.js index d7624c5354f..39c2a76ad83 100644 --- a/addons/website_blog/static/src/js/website.tour.blog.js +++ b/addons/website_blog/static/src/js/website.tour.blog.js @@ -23,11 +23,11 @@ odoo.define("website_blog.tour", function (require) { }, { trigger: "#oe_manipulators .oe_overlay.oe_active a.btn.btn-primary.btn-sm", extra_trigger: "#wrap h1[data-oe-expression=\"blog_post.name\"]:not(:containsExact(\"\"))", - content: _t("Change and customize your blog post cover."), - position: "right", + content: _t("Set a blog post cover."), + position: "bottom", }, { trigger: "a:containsExact(" + _t("Change Cover")+ "):eq(1)", - content: _t("Select this menu item to change blog cover."), + content: _t("Clich here to change your post cover."), position: "right", }, { trigger: ".o_select_media_dialog .o_existing_attachment_cell:nth(1) img", @@ -41,7 +41,7 @@ odoo.define("website_blog.tour", function (require) { position: "top", }, { trigger: ".blog_content section.mt16", - content: _t("Start writing your story here."), + content: _t("Write your story here. Use the top toolbar to style your text: add an image or table, set bold or italic, etc. Drag and drop building blocks for more graphical blogs."), position: "top", run: function (actions) { actions.auto(); @@ -50,27 +50,27 @@ odoo.define("website_blog.tour", function (require) { }, { trigger: "button[data-action=save]", extra_trigger: "#blog_content section:first p:first:not(:containsExact(" + _t("Start writing here...") + "))", - content: _t("Click on Save button to record changes on the page."), + content: _t("Click on Save to record yoru changes."), position: "bottom", }, { trigger: "a[data-action=show-mobile-preview]", extra_trigger: "body:not(.editor_enable)", - content: _t("Click on the mobile icon to preview how your blog post will be displayed on a mobile device."), + content: _t("Use this icon to preview your blog post on mobile devices."), position: "bottom", }, { trigger: "button[data-dismiss=modal]", extra_trigger: ".modal:has(#mobile-viewport)", - content: _t("Scroll to check rendering and then close the mobile preview."), + content: _t("Once you have reviewed the content on mobile, close the preview."), position: "right", }, { trigger: "button.btn-danger.js_publish_btn", extra_trigger: "body:not(.editor_enable)", - position: "top", - content: _t("Publish your blog post to make it visible to your visitors."), + position: "bottom", + content: _t("Publish your blog post to make it visible to your visitors."), }, { trigger: "#customize-menu-button", extra_trigger: "body:not(.editor_enable) .js_publish_management button.js_publish_btn.btn-success:visible", - content: _t("

This tutorial is over. Use this button to discover more features and improve the content of this page.

You can also add some cool content with your text in edit mode or keep adding pages with the upper right buttons.

"), + content: _t("That's it, your blog post is published! Discover more features through the Customize menu."), position: "bottom", width: 500, }]);