As a stable fix, to not touch XML templates and break existing translations, the ⌙ character was automatically replaced by └ which makes more sense for the usecase and should work properly in all browsers. The ⌙ character is actually rendered mirrored on Windows 11 Chrome (and others) as the font used for those unicode characters is left to the browser. We could force a font of our own but it's probably not worth it. A better solution with a SVG or CSS solution has to be done in master. That would unify the look of the symbol across all browsers and also prevent special characters to be placed in translations. With this forward-port commit, we'll start first by using └ via a CSS rule. Three new classes have been created: o_we_sublevel_1, o_we_sublevel_2 and o_we_sublevel_3. Adding any of them on a widget automatically adds the └ character. Then choosing 1, 2 or 3 controls the indentation, which was previously controlled by placing the   HTML entity directly inside strings. This commit also takes the opportunity to fix some of those level indentations (sometimes 2 was used instead of 1 or 1 was used instead of 2, etc) and also review some related labels. closes odoo/odoo#97361 X-original-commit: e5d45643598671077ade7e41f0dbfe2b502665b8 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
43 lines
2.7 KiB
XML
43 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="forum_searchbar_input_snippet_options" inherit_id="website.searchbar_input_snippet_options" name="forum search bar snippet options">
|
|
<xpath expr="//div[@data-js='SearchBar']/we-select[@data-name='scope_opt']" position="inside">
|
|
<!-- Using /website/search/forums as result because the current forum search results page cannot be used across several forums -->
|
|
<we-button data-set-search-type="forums" data-select-data-attribute="forums" data-name="search_forums_opt" data-form-action="/website/search/forums">Forums</we-button>
|
|
</xpath>
|
|
<xpath expr="//div[@data-js='SearchBar']/we-select[@data-name='order_opt']" position="inside">
|
|
<we-button data-set-order-by="write_date asc" data-select-data-attribute="write_date asc" data-dependencies="search_forums_opt" data-name="date_asc_opt">Date (low to high)</we-button>
|
|
<we-button data-set-order-by="write_date desc" data-select-data-attribute="write_date desc" data-dependencies="search_forums_opt" data-name="date_desc_opt">Date (high to low)</we-button>
|
|
</xpath>
|
|
<xpath expr="//div[@data-js='SearchBar']/div[@data-dependencies='limit_opt']" position="inside">
|
|
<we-checkbox string="Description" data-dependencies="search_forums_opt" data-select-data-attribute="true" data-attribute-name="displayDescription"
|
|
data-apply-to=".search-query"/>
|
|
<we-checkbox string="Date" data-dependencies="search_forums_opt" data-select-data-attribute="true" data-attribute-name="displayDetail"
|
|
data-apply-to=".search-query"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="snippet_options" inherit_id="website.snippet_options" name="Forum Snippet Options">
|
|
<xpath expr="." position="inside">
|
|
<div data-selector="main:has(#o_wforum_forums_index_list)" data-page-options="true" data-no-check="true" string="Forum Page">
|
|
<we-select string="Layout" data-no-preview="true" data-reload="/">
|
|
<we-button data-customize-website-views="">Grid</we-button>
|
|
<we-button data-customize-website-views="website_forum.opt_list_view">List</we-button>
|
|
</we-select>
|
|
<we-checkbox string="Post Count"
|
|
class="o_we_sublevel_1"
|
|
data-customize-website-views="website_forum.opt_post_count"
|
|
data-no-preview="true"
|
|
data-reload="/"/>
|
|
<we-checkbox string="Last Post"
|
|
class="o_we_sublevel_1"
|
|
data-customize-website-views="website_forum.opt_last_post"
|
|
data-no-preview="true"
|
|
data-reload="/"/>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|