Commit Graph
2822 Commits
Author SHA1 Message Date
Christophe Simonis 8d95f6dcdf [MERGE] forward port of branch 8.0 up to 19b5ba2 2015-08-14 17:26:04 +02:00
Denis Ledoux 19b5ba2b08 [FIX] website: condition to flag a menu as active in the top menu
1. A menu with `/page/website.***` should be flagged as `active`
if the current url is `/page/***`. This is a retro-compatibility
patch for c9d41679fb, so the
menu is marked as active without having to rename it, by
removing this `website.` thing.

2. If you defined two menus with as url `/page/test` and `/page/test2`
Both menus were flagged as `active` when you browsed the url
`/page/test2`, because it started by both menus urls.

Fixes #3059
Closes #3070
2015-08-14 17:11:16 +02:00
Mathias Neef c9d41679fb [FIX] website*: active class in menu
In the top menu bar, the `active` class is set when the
menu url matches the page url (the url in the browser url bar)

A while ago, we made so all urls
`/page/website.***'
were automatically redirected to
`/page/****`

Therefore, if the menu url still contains this `website.` prefix,
the active class wasn't set on it, while it should.

Fixes #3059
Closes #3070
2015-08-14 17:10:46 +02:00
Christophe Simonis 2922f70de3 [MERGE] forward port of branch 8.0 up to 09ceb9c 2015-08-13 15:24:57 +02:00
Nicolas Lempereur cdb9000449 [FIX] website, base: escaping and unescaping html
When saving a template in version 8.0, html would be saved as it should
be displayed once on the site. In particular, if some text should be
escaped once send to the browser, it will be saved as such.

But when rendering, a text node content is unescaped two times:

* for translation which seems wrong since we already use .text of a node
  which already escaped it, doing it one more time is bad,

* when rendering the template, since the html template is stored in xml,

This commit remove superfluous unescaping for translation, and add an
escaping when saving the changed template content.

closes #7967
opw-646889
2015-08-13 15:15:24 +02:00
Goffin Simon 60d1c69a88 [FIX] website: hide modal
When dropping the snippet "Newsletter Popup", a modal appeared to choose
the newsletter. Once the button "Continue" was clicked, the modal was not
hidden and then it was impossible to scroll.
2015-08-13 13:20:20 +02:00
Jeremy Kersten 7e948b2e47 [FIX] website: editor - allow to customize fa
Allow to add class img-circle, img-thumbnail, img-rounded, shadow on font awesome
Missing feature which one was present in v8 via customize
2015-08-13 10:05:18 +02:00
Christophe Simonis 171d001985 [MERGE] forward port of branch 8.0 up to 02954ba 2015-08-11 16:56:47 +02:00
Goffin Simon 71d51bb05f [FIX] website: background of the banner
";" is not always in the background style of the banner.

opw:647083
2015-08-11 15:28:39 +02:00
Jeremy Kersten c47ea6f8ea [FIX] website: editor - duplicate the slide from snippet
Since saas-6, all snippets should start by a s_, so we can know exactly what is
 the current snippet, and retrieve the slide from the drop-snippets bar.

If none snippet match, we use the old method which consists to find the snippet
which have the biggest intersection of class betwwen dropped snippet, and all
snippets in drop-snippets bar.

A other way without update the JS code will be to had many fake class in the
snippet declaration and in the snippet code to be sure that it match the right
snippet.
2015-08-11 13:58:04 +02:00
Goffin Simon a1328c9054 [FIX] website: escaped hash and url
To be valid for the redirection, the url and the hash
must be percent encoded.

opw:646837
2015-08-10 16:18:16 +02:00
Odoo Translation Bot 4fcc756ef9 [I18N] Update translation terms from Transifex 2015-08-09 02:00:12 +02:00
Jeremy Kersten 1478a5958d [FIX] website: fix color switcher
Typo nodes vs node
Allow to switch color from text after that user click on img and come back
 on text field
2015-08-06 17:21:29 +02:00
Odoo Translation Bot 218ffc1a5a [I18N] Update translation terms from Transifex 2015-08-02 01:59:36 +02:00
Nicolas Lempereur e7e9eb987b [FIX] website: copy paste from website
Pasting from the website to the website could for example copy
t-field="..." which then would easily add an error if e.g a field
is copied to an area where it is not available.

This fix strip the data-oe-... attributes of nodes added to the DOM
when pasting.

closes #7653
opw-644968
2015-07-31 13:17:11 +02:00
Martin Trigaux 4ac9bfb619 [I18N] website: missing terms
The content of website.layout_footer_copyright is modified in several modules
but the terms were missing in .pot file.
2015-07-22 09:40:32 +01:00
Odoo Translation Bot 0871f423a3 [I18N] Update translation terms from Transifex 2015-07-19 02:01:00 +02:00
Jeremy Kersten fea605a98c [FIX] website: fix editor 2015-07-17 17:24:38 +02:00
Christophe Matthieu 9687a579f4 [FIX] website: media editor don't manage the font awsome alias 2015-07-17 12:13:07 +02:00
Christophe Matthieu f52c6bfaeb [FIX] website: editor: when create a link, the saved range is obsolete, and when the user click on an other option the range selection fail 2015-07-16 20:59:40 +02:00
Christophe Matthieu a74601d901 [FIX] website: wrong undo step if insert a table 2015-07-16 20:59:26 +02:00
Christophe Matthieu de5515ab45 [FIX] website: editor don't save content if change only the background color 2015-07-16 20:59:22 +02:00
Goffin Simon e765b8556a [FIX] website: translate links
When translating on website, the click must be disabled on elements
which can be translated.

opw:644542
2015-07-16 08:56:42 +02:00
Jeremy Kersten 4a1986b341 [FIX] website: allow change banner once custom img has been selected 2015-07-15 11:38:18 +02:00
Jeremy Kersten c1d290d699 [FIX] website: fix snippet references 2015-07-15 11:38:15 +02:00
Jeremy Kersten f84bbda221 [FIX] website: fix snippet comparisons 2015-07-15 11:34:28 +02:00
Jeremy Kersten c53134a2ce [FIX] website: fix bugs in editors
See childs commits to have more details on fixes
2015-07-13 11:46:39 +02:00
Jeremy Kersten b76ad02c8e [FIX] website: fix tour to select colorpicker 2015-07-13 10:46:44 +02:00
Goffin Simon 1f79dedfa8 [FIX] website: popUndo doesn't exist
The function popUndo doesn't exist in summernote.
But this function exists in our RTE.
The edition of a comment in the website forum uses summernote and
then it crashes when using popUndo.
In the forum, when writing a reply, if you highlighted a text
and I clicked on the link icon to hyperlink the text, neither
the OK button nor the cross button closed the popup.
This commit solved this bug.
In our RTE, the function popUndo is never used then it can be deleted.

opw:644486
2015-07-13 10:30:39 +02:00
Odoo Translation Bot 99a7d530e0 [I18N] Update translation terms from Transifex 2015-07-12 01:51:44 +02:00
Jeremy Kersten a3a20b49e4 [FIX] website: support big text on jumbotron p (big button, quote, ...) 2015-07-10 18:33:20 +02:00
Jeremy Kersten 80db19100a [FIX] website: dont call a dog a cat !
Already in V8, the 'Separator' is not a content but a structure snippet !
2015-07-10 18:15:47 +02:00
Jeremy Kersten 653ccf7b3b [FIX] website: A panel is a panel... 2015-07-10 18:15:46 +02:00
Jeremy Kersten 1621d3fe1a [FIX] website: Fix background option
Add oe_dark in color list for 'background color', else end user cannot change the color
Force background-color and not background, else background-size from oe_img is overrided
and so the background is displayed with a size:auto instead of cover
2015-07-10 18:15:46 +02:00
Christophe Simonis 4a2aee45be [MERGE] forward port of branch 8.0 up to 9654b54 2015-07-10 17:12:57 +02:00
Jeremy Kersten 5ed23c87d4 [FIX] website: use summernote.less and fix color picker (+ add FA support) 2015-07-10 16:10:03 +02:00
Jeremy Kersten fb4c6bc865 [FIX] website: banner in cover to be repsonsive 2015-07-10 16:09:32 +02:00
Jeremy Kersten fa7d32e722 [REV] website, website_quote: partial revert of d1d8802/ed9f8fd
This hack was just good to print, but break all repsonsive snippets.
Previous commit specify the use of col-md when printing, and so avoid
to add xs anywhere !
2015-07-10 16:09:32 +02:00
Jeremy Kersten 9b11430887 [FIX] website: basic banner snippet - allow to change background after that the snippet is dropped 2015-07-10 16:09:32 +02:00
Jeremy Kersten 34e26dbfb1 [FIX] website: 92 is beautiful
Arbitrary 93px make the menu (with all snippets to drag and drop) bugged.
We have one snippet by line...

why not 91 :/ ? I dont know...
2015-07-10 16:09:31 +02:00
Denis Ledoux d08facdcb5 [FIX] website: the sitemap must be build with the public user
Otherwise, when accessing `/sitemap.xml` as SUPERUSER for instance,
pages not published were displayed in the sitemap.

opw-640673
2015-07-08 14:16:30 +02:00
Odoo Translation Bot fe3835faff [I18N] Update translation terms from Transifex 2015-07-05 01:52:32 +02:00
Christophe Simonis 4c2a1de75a [MERGE] forward port of branch 8.0 up to 22bd3bd 2015-07-01 18:11:32 +02:00
Olivier Dony e3bd2a5914 [FIX] web_calendar, website: avoid rendering errors with special characters 2015-07-01 17:58:28 +02:00
Christophe Matthieu 3e0d7e6664 [FIX] website: can't create twice the same page because there are a infinity loop 2015-06-30 15:13:52 +02:00
Goffin Simon 7863e04f42 [FIX] website: Add pictogram
When adding a pictogram to a page, the save button didn't automatically close the opened dialog.

opw:642944
2015-06-29 10:23:37 +02:00
Odoo Translation Bot acc1b525fa [I18N] Update translation terms from Transifex 2015-06-29 08:42:08 +02:00
Odoo Translation Bot 35b2463324 [I18N] Update translation terms from Transifex 2015-06-22 13:21:18 +02:00
Julien Legros b4d66099ca [IMP] website_*: website publish button
When clicking on the publish/unpublish button in a form view, if the
user does not belong to the `base.group_website_publisher` group,
fallback to a simple toggling behavior.
2015-06-19 12:22:46 +02:00
Christophe Matthieu 1b7c49bf1e [FIX] website: trigger on change to save when drag and drop and change snippet options 2015-06-17 19:23:17 +02:00