Files
odoo_source/addons/web_planner/static/src/xml/web_planner.xml
T
Damien Bouvy 0a6edac151 [FIX] web, openerp: make the webclient edition aware
- Differentiate between the Community and Enterprise editions
in the version number. By adding this attribute on the global
odoo JS object in the web client bootstrap controller /web,
we can differentiate between versions easily on the client
side without extra RPC calls.

- Remove a couple of version-related RPC calls in case
the global version info is present in the JS environment

- Update "About" panel to display the edition info

- This commit also reverts 07fe5afc87
which implemented the idea in a more limited way.

Closes #9625
2015-11-25 18:12:42 +01:00

115 lines
6.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template">
<t t-name="PlannerLauncher">
<li class="o_planner_systray hidden-xs">
<div class="progress"><div class="progress-bar"/></div>
</li>
<li class="o_planner_help">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="Open Help Menu" aria-expanded="false">
<span class="fa fa-question-circle"/>
<b class="caret"/>
</a>
<ul class="dropdown-menu" role="menu">
<li class="o_planner_link"><a href="#" data-menu="planner">Planner</a></li>
<li><a href="#" data-menu="documentation">Documentation</a></li>
<li><a href="#" data-menu="support">Support</a></li>
<li><a href="#" data-menu="about">About</a></li>
</ul>
</li>
</t>
<t t-name="PlannerLauncher.about">
<div class="oe_about">
<div class="container-fluid">
<div class="row">
<a class="oe_activate_debug_mode oe_right label label-primary" href="?debug" >Activate the developer mode</a>
</div>
<div class="row">
<div class="col-sm-offset-2 col-md-offset-2 col-sm-8 col-md-8 user-details">
<div class="user-image">
<img src="/web/static/src/img/logo2.png" alt="Odoo (Formerly OpenERP)" title="Odoo (Formerly OpenERP)" class="img-circle"/>
</div>
<div class="user-info-block">
<div class="user-heading">
<h3>
Version <t t-esc="db_info.server_version"/>
(<span t-esc="db_info.server_version_info[5] == 'e'?'Enterprise':'Community'"/> Edition)
</h3>
<t t-if="db_info.expiration_date">
<h5>Database expiration: <t t-esc="new moment(db_info.expiration_date).format('LL')"/></h5>
</t>
</div>
<div class="user-body">
<div class="tab-content">
<div id="settings" class="tab-pane active">
<h4>Copyright © 2004-2015 Odoo S.A.</h4>
<p>Odoo is a trademark of <a target="_blank" href="https://www.odoo.com" style="text-decoration: underline;">Odoo S.A.</a></p>
<p>Licenced under the terms of <a target="_blank" href="http://www.gnu.org/licenses/lgpl.html" style="text-decoration: underline;">GNU Lesser General Public License</a></p>
<p>For more information visit <a target="_blank" href="https://www.odoo.com" style="text-decoration: underline;">Odoo.com</a></p>
<p>
<a href="https://www.odoo.com/web/about/facebook"><i class="fa fa-facebook-square fa-3x social-fb"></i></a>
<a href="https://www.odoo.com/web/about/twitter"><i class="fa fa-twitter-square fa-3x social-tw"></i></a>
<a href="https://www.odoo.com/web/about/googleplus"><i class="fa fa-google-plus-square fa-3x social-gp"></i></a>
<a href="https://www.odoo.com/web/about/linkedin"><i class="fa fa-linkedin-square fa-3x social-lk"></i></a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</t>
<div t-name="PlannerDialog" class="modal" id="PlannerDialog" tabindex="-1" role="dialog" aria-labelledby="PlannerDialogLabel" aria-hidden="true">
<div class="modal-dialog modal-lg o_planner_dialog">
<div class="modal-content">
<div class="modal-header">
<div class="o_planner_title_block">
<h4 class="o_currently_shown_page"/>
</div><div class="o_planner_progress_block">
<div class="progress"><div class="progress-bar"/></div> <div class="o_progress_text"></div>
</div><div class="o_planner_close_block"><button aria-hidden="true" class="close" data-dismiss="modal" type="button"><span class="fa fa-close"></span></button></div>
</div>
<div class="modal-body">
<div class="o_planner_content_wrapper">
<div class="o_planner_menu">
<ul role="menu" aria-labelledby="dLabel"/>
</div>
</div>
</div>
<div class="modal-footer">
<div class="o_planner_header_left">
<button class="btn btn-primary mark_as_done">
<i class="fa fa-square-o"></i>
<span>Mark As Done</span>
</button>
</div><div class="o_planner_header_right text-right">
<a class="btn btn-next">
Next step
<i class="fa fa-angle-right"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<t t-name="PlannerMenu">
<li t-foreach="orphan_pages" t-as="orphan_page">
<a t-att-href="'#' + menu_item_page_map[orphan_page]"><span class="fa fa-fw"/><t t-esc="orphan_page"/></a>
</li>
<t t-foreach="menu_categories" t-as="menu_category">
<h4><i t-att-class="'fa ' + menu_category.classes"/><t t-esc="menu_category.name"/></h4>
<li t-foreach="menu_category.menu_items" t-as="menu_item">
<a t-att-href="'#' + menu_item_page_map[menu_item]" disable_anchor="true"><span class="fa fa-fw"/><t t-esc="menu_item"/></a>
</li>
</t>
</t>
</templates>