As `discuss_public_channel_template` is sandboxed for the `webclient`
the following CSS rule is not applied anymore.
```css
.o_web_client {
direction: ltr;
}
```
This commit adds it specifically for this template to reflect the
language direction in this sandboxed environment.
closes odoo/odoo#95893
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
56 lines
2.3 KiB
XML
56 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="mail.discuss_public_layout"><!DOCTYPE html>
|
|
<html class="h-100">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
|
|
|
<title t-esc="title or 'Odoo'"/>
|
|
<link type="image/x-icon" rel="shortcut icon" t-att-href="x_icon or '/web/static/img/favicon.ico'"/>
|
|
|
|
<script>
|
|
window.odoo = {
|
|
__session_info__: <t t-out="json.dumps(session_info)"/>,
|
|
csrf_token: "<t t-out="request.csrf_token(None)"/>",
|
|
debug: "<t t-out="debug"/>",
|
|
};
|
|
odoo.loadTemplatesPromise = fetch(`/web/webclient/qweb/${odoo.__session_info__.cache_hashes.assets_discuss_public}?bundle=mail.assets_discuss_public`).then(doc => doc.text());
|
|
{
|
|
const { user_context, cache_hashes } = odoo.__session_info__;
|
|
fetch(`/web/webclient/translations/${cache_hashes.translations}?lang=${user_context.lang}`);
|
|
}
|
|
</script>
|
|
|
|
<t t-call-assets="mail.assets_common_discuss_public"/>
|
|
<t t-call-assets="mail.assets_discuss_public"/>
|
|
<t t-call-assets="mail.assets_discuss_public_test_tours" t-if="'tests' in debug or test_mode_enabled"/>
|
|
|
|
<t t-out="head or ''"/>
|
|
</head>
|
|
<body class="d-flex flex-column h-100">
|
|
<t t-out="body or ''"/>
|
|
</body>
|
|
</html>
|
|
</template>
|
|
|
|
<template id="mail.discuss_public_channel_template" name="Discuss Public Channel Template">
|
|
<t t-call="mail.discuss_public_layout">
|
|
<t t-set="head">
|
|
<style>
|
|
body {
|
|
direction: <t t-out="env['res.lang']._lang_get(lang or env.user.lang).direction or 'ltr'" />;
|
|
}
|
|
</style>
|
|
<script>
|
|
odoo.define('mail.discuss_public_channel_template', function() {
|
|
return {
|
|
data: <t t-out="json.dumps(data)"/>,
|
|
};
|
|
});
|
|
</script>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|