Files
web/support_branding/views/qweb.xml
Quentin THEURET c45e0bae1a Fix issue with bad position of Version div
When support_branding module is installed and support_branding.release parameter is set, the scrollbar of the menu is moved and the 'Version' indication is not put below the 'Supported by' statement.
2016-05-24 14:09:42 +02:00

19 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<template id="support_branding_assets" name="support_branding assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/support_branding/static/src/js/support_branding.js"></script>
<link rel="stylesheet" href="/support_branding/static/src/css/support_branding.css" />
</xpath>
</template>
<template id="menu_secondary" inherit_id="web.menu_secondary">
<xpath expr="//div[@class='oe_footer']" position="inside">
<span>, supported by <a target="_new" t-att-href="request.env['ir.config_parameter'].get_param('support_branding.company_url')" t-att-style="'color: ' + request.env['ir.config_parameter'].get_param('support_branding.company_color')"><t t-esc="request.env['ir.config_parameter'].get_param('support_branding.company_name')" /></a>
<div t-if="request.env['ir.config_parameter'].get_param('support_branding.release')">Version <t t-esc="request.env['ir.config_parameter'].get_param('support_branding.release')" /></div>
</span>
</xpath>
</template>
</data>
</openerp>