80 lines
4.2 KiB
XML
80 lines
4.2 KiB
XML
<odoo>
|
|
<template id="image_home_template" name="Home Page Icons">
|
|
<t t-call="web.frontend_layout">
|
|
<t t-set="no_footer" t-value="True"/>
|
|
<t t-set="no_header" t-value="True"/>
|
|
<link rel="stylesheet" type="text/css" href="/home_dashboard/static/src/css/home_menu.css"/>
|
|
|
|
<div class="o_home_menu_background">
|
|
<!-- Top Bar -->
|
|
<div class="o_home_top_bar">
|
|
<div class="o_top_bar_island">
|
|
<a href="/" class="o_top_item" title="Chennora Home" style="width: auto; padding: 0 10px;">
|
|
<img t-attf-src="/web/binary/company_logo" style="height: 24px; width: auto; object-fit: contain;"/>
|
|
</a>
|
|
<div class="o_bar_divider" style="margin: 0 5px;"></div>
|
|
|
|
<a href="/" class="o_top_item" title="View Website">
|
|
<i class="fa fa-globe"/>
|
|
</a>
|
|
|
|
<a href="#" class="o_top_item" title="AI Assistant">
|
|
<span class="o_ai_icon">AI</span>
|
|
</a>
|
|
|
|
<a href="#" class="o_top_item" title="Search">
|
|
<i class="fa fa-search"/>
|
|
</a>
|
|
|
|
<a href="/web#action=mail.action_discuss" class="o_top_item" title="Messages">
|
|
<i class="fa fa-comments-o"/>
|
|
<span class="badge_dot"/>
|
|
</a>
|
|
|
|
<a href="/web#action=base.action_res_config_general_settings" class="o_top_item" title="Settings">
|
|
<i class="fa fa-sliders"/>
|
|
</a>
|
|
|
|
<div class="o_bar_divider"></div>
|
|
|
|
<div class="o_user_avatar_container">
|
|
<a href="/web#action=base.action_res_users_my" class="o_user_avatar" style="display:flex; align-items:center; justify-content:center; text-decoration:none;">
|
|
<t t-esc="user_id.name[0] if user_id else 'U'"/>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container" style="padding-top: 100px;">
|
|
<div class="o_apps">
|
|
<t t-foreach="menus" t-as="menu">
|
|
<t t-set="app_url" t-value="'/web#menu_id=' + str(menu.id)"/>
|
|
<!-- Check if it is the Website app by checking the icon module or name -->
|
|
<t t-if="(menu.web_icon and menu.web_icon.startswith('website,')) or menu.name == 'Website'">
|
|
<t t-set="app_url" t-value="'/home'"/>
|
|
</t>
|
|
<a t-att-href="app_url" class="o_app">
|
|
<div class="o_app_icon_container">
|
|
<t t-if="menu.web_icon">
|
|
<t t-set="icon_data" t-value="menu.web_icon.split(',')"/>
|
|
<img t-attf-src="/{{icon_data[0]}}/{{icon_data[1]}}"
|
|
class="o_app_icon" loading="lazy"
|
|
onerror="this.style.display='none'; this.nextElementSibling.style.display='block';"/>
|
|
<div class="o_app_icon fa fa-cube" style="font-size: 40px; color: #7c7bad; display: none;"/>
|
|
</t>
|
|
<t t-else="">
|
|
<div class="o_app_icon fa fa-cube" style="font-size: 40px; color: #7c7bad;"/>
|
|
</t>
|
|
</div>
|
|
<div class="o_app_name">
|
|
<t t-esc="menu.name"/>
|
|
</div>
|
|
</a>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</odoo>
|