| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<template |
| 5 |
id="website_sale.s_mega_menu_thumbnails" |
| 6 |
name="eCommerce: Menu - Thumbnails" |
| 7 |
groups="base.group_user" |
| 8 |
> |
| 9 |
<section class="s_mega_menu_thumbnails pt24 o_colored_level o_cc o_cc1"> |
| 10 |
<div class="container"> |
| 11 |
<div class="row ustify-content-center"> |
| 12 |
<t t-set="counter" t-value="0"/> |
| 13 |
<t |
| 14 |
t-foreach="request.env['product.public.category'].search([ |
| 15 |
('parent_id', '=', False), ('has_published_products', '=', True), |
| 16 |
], limit=10)" |
| 17 |
t-as="category" |
| 18 |
> |
| 19 |
<t t-set="counter" t-value="counter + 1"/> |
| 20 |
<t t-if="(counter - 1) % 5 == 0 and counter != 1"> |
| 21 |
<div class="w-100 d-none d-lg-block"></div> |
| 22 |
</t> |
| 23 |
<div class="col-6 col-lg-2 text-center py-2"> |
| 24 |
<a |
| 25 |
t-att-href="'/shop/category/%s' % category.id" |
| 26 |
class="nav-link p-0" |
| 27 |
> |
| 28 |
<img |
| 29 |
t-if="category.image_1920" |
| 30 |
t-att-src="image_data_uri(category.image_1920)" |
| 31 |
class="img-fluid rounded shadow" |
| 32 |
alt="" |
| 33 |
/> |
| 34 |
<br/> |
| 35 |
<span class="d-block p-2 small"> |
| 36 |
<b> |
| 37 |
<t t-esc="category.name"/> |
| 38 |
</b> |
| 39 |
</span> |
| 40 |
</a> |
| 41 |
</div> |
| 42 |
</t> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
</section> |
| 46 |
</template> |
| 47 |
|
| 48 |
</odoo> |