<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

<!-- Layout add nav and footer -->
<template id="footer_supplier_page" inherit_id="website.footer_default" name="Footer Supplier Link">
    <xpath expr="//div[@id='info']/ul" position="inside">
        <li><a href="/suppliers">Our Suppliers</a></li>
    </xpath>
</template>

<template id="index" name="Our Suppliers">
    <t t-call="website.layout">
        <div id="wrap">
            <div class="oe_structure">
                <section data-snippet-id="title">
                    <h1 class="text-center">
                        Our Suppliers
                    </h1><h2 class="text-center text-muted">
                        Trusted by millions worldwide
                    </h2>
                </section>
            </div>
            <div class="container">
                <div class="row">
                    <div class="col-md-3 mb32" id="ref_left_column">
                    </div>
                    <div class="col-md-8 col-md-offset-1" id="ref_content">
                        <div class='navbar mb0'>
                            <t t-call="website.pager">
                               <t t-set="classname" t-value="'pull-left'"/>
                            </t>
                            <form action="" method="get" class="navbar-search pull-right pagination form-inline">
                                <div class="form-group">
                                    <input type="text" name="search" class="search-query form-control"
                                        placeholder="Search" t-att-value="post.get('search', '')"/>
                                </div>
                            </form>
                        </div>

                        <div class="row">

                    <p t-if="not partners">No result found</p>
                    <t t-foreach="partners" t-as="partner">
                        <div class="media">
                            <a class="pull-left" t-attf-href="/suppliers/#{slug(partner)}"
                               t-field="partner.image_small"
                               t-field-options='{"widget": "image", "class": "media-object"}'
                            ></a>
                            <div class="media-body" style="min-height: 64px;">
                                <a class="media-heading" t-attf-href="/suppliers/#{slug(partner)}">
                                    <span t-field="partner.display_name"/>
                                </a>
                                <div t-field="partner.website_short_description"/>
                            </div>
                        </div>
                    </t>
                        </div>
                    </div>

                </div>
            </div>
            <div class="oe_structure"/>
        </div>
    </t>
</template>

<!-- Option: left column: World Map -->
<template id="opt_country" inherit_id="website_supplier.index" customize_show="True" name="Show Map">
    <xpath expr="//div[@id='ref_left_column']" position="inside">
        <!-- modal for large map -->
        <div class="modal fade customer_map_modal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
          <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title">World Map</h4>
                </div>
                <iframe t-attf-src="/google_map/?width=898&amp;height=485&amp;partner_ids=#{ google_map_partner_ids }&amp;partner_url=/suppliers/"
                style="width:898px; height:485px; border:0; padding:0; margin:0;"></iframe>
            </div>
          </div>
        </div>
        <!-- modal end -->
        <h3>World Map<button class="btn btn-link" data-toggle="modal" data-target=".customer_map_modal"><span class="fa fa-external-link" /></button></h3>
        <ul class="nav">
            <iframe t-attf-src="/google_map?width=260&amp;height=240&amp;partner_ids=#{ google_map_partner_ids }&amp;partner_url=/suppliers/"
                style="width:260px; height:240px; border:0; padding:0; margin:0;" scrolling="no"></iframe>
        </ul>
    </xpath>
</template>

<template id="opt_country_list" inherit_id="website_supplier.index" customize_show="True" name="Filter on Countries">
    <xpath expr="//div[@id='ref_left_column']" position="inside">
        <h3>References by Country</h3>
        <ul class="nav nav-pills nav-stacked mt16 mb32">
            <t t-foreach="countries" t-as="country_dict">
                <t t-if="country_dict['country_id']">
                    <li t-att-class="country_dict['country_id'][0] == current_country_id and 'active' or ''">
                        <a t-attf-href="/suppliers/#{ country_dict['country_id'][0] and 'country/%s' % slug(country_dict['country_id']) or '' }#{ search_path }">
                            <span class="badge pull-right" t-esc="country_dict['country_id_count'] or '0'"/>
                            <t t-esc="country_dict['country_id'][1]"/>
                        </a>
                    </li>
                </t>
            </t>
        </ul>

    </xpath>
</template>

<template id="details" name="Customer Detail">
  <t t-call="website.layout">
    <div id="wrap">
        <div class="oe_structure"/>
        <div class="container mt16">
            <div class="row">
                <div class="col-md-5">
                    <ol class="breadcrumb">
                        <li><a href="/suppliers">Our References</a></li>
                        <li class="active"><span t-field="partner.display_name"/></li>
                    </ol>
                </div>
                <t t-call="website_partner.partner_detail">
                    <t t-set="left_column">
                        <div id="left_column"><t t-call="website_supplier.implemented_by_block"/></div>
                    </t>
                    <t t-set="right_column">
                        <div id="right_column"><t t-call="website_supplier.references_block"/></div>
                    </t>
                </t>
            </div>
        </div>
        <div class="oe_structure"/>
    </div>
  </t>
</template>

<template id="partner_details" inherit_id="website_partner.partner_page" name="Partner Detail Columns">
 <xpath expr="//t[@t-call='website_partner.partner_detail']" position="inside">
    <t t-set="left_column"><div id="left_column"><t t-call="website_supplier.implemented_by_block"/></div></t>
    <t t-set="right_column"><div id="right_column"><t t-call="website_supplier.references_block"/></div></t>
 </xpath>
</template>

<template id="implemented_by_block" name="Partner Implemented By Block">
        <t t-if="partner.assigned_partner_id and partner.assigned_partner_id.website_published">
            <div class="panel panel-default"><commit_msg>[FIX] Change the name of inherit_id<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

<!-- Layout add nav and footer -->
<template id="footer_supplier_page" inherit_id="website.footer_default" name="Footer Supplier Link">
    <xpath expr="//div[@id='info']/ul" position="inside">
        <li><a href="/suppliers">Our Suppliers</a></li>
    </xpath>
</template>

<template id="index" name="Our Suppliers">
    <t t-call="website.layout">
        <div id="wrap">
            <div class="oe_structure">
                <section data-snippet-id="title">
                    <h1 class="text-center">
                        Our Suppliers
                    </h1><h2 class="text-center text-muted">
                        Trusted by millions worldwide
                    </h2>
                </section>
            </div>
            <div class="container">
                <div class="row">
                    <div class="col-md-3 mb32" id="ref_left_column">
                    </div>
                    <div class="col-md-8 col-md-offset-1" id="ref_content">
                        <div class='navbar mb0'>
                            <t t-call="website.pager">
                               <t t-set="classname" t-value="'pull-left'"/>
                            </t>
                            <form action="" method="get" class="navbar-search pull-right pagination form-inline">
                                <div class="form-group">
                                    <input type="text" name="search" class="search-query form-control"
                                        placeholder="Search" t-att-value="post.get('search', '')"/>
                                </div>
                            </form>
                        </div>

                        <div class="row">

                    <p t-if="not partners">No result found</p>
                    <t t-foreach="partners" t-as="partner">
                        <div class="media">
                            <a class="pull-left" t-attf-href="/suppliers/#{slug(partner)}"
                               t-field="partner.image_small"
                               t-field-options='{"widget": "image", "class": "media-object"}'
                            ></a>
                            <div class="media-body" style="min-height: 64px;">
                                <a class="media-heading" t-attf-href="/suppliers/#{slug(partner)}">
                                    <span t-field="partner.display_name"/>
                                </a>
                                <div t-field="partner.website_short_description"/>
                            </div>
                        </div>
                    </t>
                        </div>
                    </div>

                </div>
            </div>
            <div class="oe_structure"/>
        </div>
    </t>
</template>

<!-- Option: left column: World Map -->
<template id="opt_country" inherit_id="website_supplier_list.index" customize_show="True" name="Show Map">
    <xpath expr="//div[@id='ref_left_column']" position="inside">
        <!-- modal for large map -->
        <div class="modal fade customer_map_modal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
          <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title">World Map</h4>
                </div>
                <iframe t-attf-src="/google_map/?width=898&amp;height=485&amp;partner_ids=#{ google_map_partner_ids }&amp;partner_url=/suppliers/"
                style="width:898px; height:485px; border:0; padding:0; margin:0;"></iframe>
            </div>
          </div>
        </div>
        <!-- modal end -->
        <h3>World Map<button class="btn btn-link" data-toggle="modal" data-target=".customer_map_modal"><span class="fa fa-external-link" /></button></h3>
        <ul class="nav">
            <iframe t-attf-src="/google_map?width=260&amp;height=240&amp;partner_ids=#{ google_map_partner_ids }&amp;partner_url=/suppliers/"
                style="width:260px; height:240px; border:0; padding:0; margin:0;" scrolling="no"></iframe>
        </ul>
    </xpath>
</template>

<template id="opt_country_list" inherit_id="website_supplier_list.index" customize_show="True" name="Filter on Countries">
    <xpath expr="//div[@id='ref_left_column']" position="inside">
        <h3>References by Country</h3>
        <ul class="nav nav-pills nav-stacked mt16 mb32">
            <t t-foreach="countries" t-as="country_dict">
                <t t-if="country_dict['country_id']">
                    <li t-att-class="country_dict['country_id'][0] == current_country_id and 'active' or ''">
                        <a t-attf-href="/suppliers/#{ country_dict['country_id'][0] and 'country/%s' % slug(country_dict['country_id']) or '' }#{ search_path }">
                            <span class="badge pull-right" t-esc="country_dict['country_id_count'] or '0'"/>
                            <t t-esc="country_dict['country_id'][1]"/>
                        </a>
                    </li>
                </t>
            </t>
        </ul>

    </xpath>
</template>

<template id="details" name="Customer Detail">
  <t t-call="website.layout">
    <div id="wrap">
        <div class="oe_structure"/>
        <div class="container mt16">
            <div class="row">
                <div class="col-md-5">
                    <ol class="breadcrumb">
                        <li><a href="/suppliers">Our References</a></li>
                        <li class="active"><span t-field="partner.display_name"/></li>
                    </ol>
                </div>
                <t t-call="website_partner.partner_detail">
                    <t t-set="left_column">
                        <div id="left_column"><t t-call="website_supplier_list.implemented_by_block"/></div>
                    </t>
                    <t t-set="right_column">
                        <div id="right_column"><t t-call="website_supplier_list.references_block"/></div>
                    </t>
                </t>
            </div>
        </div>
        <div class="oe_structure"/>
    </div>
  </t>
</template>

<template id="partner_details" inherit_id="website_partner.partner_page" name="Partner Detail Columns">
 <xpath expr="//t[@t-call='website_partner.partner_detail']" position="inside">
    <t t-set="left_column"><div id="left_column"><t t-call="website_supplier_list.implemented_by_block"/></div></t>
    <t t-set="right_column"><div id="right_column"><t t-call="website_supplier_list.references_block"/></div></t>
 </xpath>
</template>

<template id="implemented_by_block" name="Partner Implemented By Block">
        <t t-if="partner.assigned_partner_id and partner.assigned_partner_id.website_published">
            <div class="panel panel-default">
{'fraction_non_alphanumeric': 0.15920398009950248, 'fraction_numerical': 0.008955223880597015, 'mean_word_length': 1.6955938697318007, 'pattern_counts': {'":': 4, '<': 325, '<?xml version=': 2, '>': 325, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2644518', 'n_tokens_mistral': 4217, 'n_tokens_neox': 3979, 'n_words': 704}