<commit_before><?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- Front-end/Back-end integration -->
    <template groups="base.group_user" id="user_navbar" inherit_id="website.layout">
        <xpath expr="//body" position="attributes">
            <attribute name="class">o_connected_user</attribute>
        </xpath>
        <xpath expr="//body/div['id=wrawrap']" position="before">
            <nav t-if="website and menu_data" id="oe_main_menu_navbar" class="o_main_navbar">
                <ul id="oe_applications">
                    <li class="dropdown active">
                        <a class="dropdown full" data-toggle="dropdown" href="#">
                            <i class="fa fa-th-large"/> WEBSITE <b class="caret"/>
                        </a>
                        <ul class="dropdown-menu">
                            <li t-as="menu" t-foreach="menu_data['children']">
                                <t t-set="debug_param" t-value="'?&amp;debug=' if debug else ''"/>
                                <a t-att-class="'oe_menu_toggler' if menu.get('children') else 'oe_menu_leaf'" t-att-data-action-id="menu['action'] and menu['action'].split(',')[1] or ''" t-att-data-action-model="menu['action'] and menu['action'].split(',')[0] or ''" t-att-data-menu="menu['id']" t-att-href="'/web%s#menu_id=%s&amp;action=%s' % (debug_param, menu['id'], menu['action'] and menu['action'].split(',')[1] or '')">
                                    <i t-attf-class="fa #{menu.get('icon')} fa-lg fa-fw" t-if="menu.get('icon')"/>
                                    <span class="oe_menu_text">
                                        <t t-esc="menu['name']"/>
                                    </span>
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>

                <button type="button" class="fa fa-bars pull-right visible-xs-block o_mobile_menu_toggle"/>

                <div class="o_menu_brand">Website</div>

                <ul class="o_menu_sections">
                    <!-- Promote -->
                    <li class="dropdown" groups="base.group_website_designer">
                        <a class="dropdown-toggle waves" data-toggle="dropdown" href="#" id="promote-menu-button">Promote</a>
                        <ul class="dropdown-menu oe_promote_menu" role="menu">
                            <li><a data-action="promote-current-page" href="#" title="Promote page on the web">Optimize SEO</a></li>
                            <li><a href="https://www.adspike.com" title="Optimize your AdWords account">Optimize AdWords Campaign</a></li>
                        </ul>
                    </li>
                    <!-- Content -->
                    <li class="dropdown content" groups="base.group_website_publisher" t-if="editable">
                        <a id="content-menu-button" class="dropdown-toggle waves" data-toggle="dropdown" href="#">Content</a>
                        <ul class="dropdown-menu oe_content_menu" role="menu">
                            <li groups="base.group_website_designer">
                                <a data-action="edit_menu" href="#" title="Edit Top Menu">Edit Menu</a>
                            </li>
                            <li t-if="deletable" groups="base.group_website_designer"><a href="#" data-action="rename_page">Rename Page</a></li>
                            <li t-if="deletable" groups="base.group_website_designer"><a href="#" data-action="delete_page">Delete Page</a></li>
                        </ul>
                    </li>
                    <!-- Customize -->
                    <li class="dropdown" groups="base.group_website_designer" id="customize-menu">
                        <a class="dropdown-toggle waves" data-toggle="dropdown" href="#" id="customize-menu-button">Customize</a>
                        <ul class="dropdown-menu" role="menu">
                            <li id="html_editor"><a data-action="ace" href="#advanced-view-editor">HTML Editor</a></li>
                            <li id="theme_customize"><a href="#">Customize Theme</a></li>
                            <li id="install_apps"><a href="/web#return_label=Website&amp;action=website.action_module_website">Install Apps</a></li>
                            <li class="divider"/>
                        </ul>
                    </li>
                    <!-- Help -->
                    <li class="dropdown">
                        <a class="dropdown-toggle waves" data-toggle="dropdown" href="#" id="help-menu-button">Help</a>
                        <ul class="dropdown-menu" id="help-menu" role="menu">
                            <li class="dropdown-header">HELP &amp; TUTORIALS</li>
                        </ul>
                    </li>
                </ul>

                <ul class="o_menu_systray">
                    <!-- Mobile preview -->
                    <li class="o_mobile_preview hidden-xs">
                        <a data-action="show-mobile-preview" href="#"><span title="Mobile preview" class="fa fa-mobile"/></a>
                    </li>
                    <!-- Page Edition -->
                    <li groups="base.group_website_publisher,base.group_website_designer">
                        <a data-action="new_page" href="#" data-toggle="modal" data-target="#o_website_add_page_modal"><span class="fa fa-plus"/> NEW PAGE</a>
                    </li>
                    <li t-if="not translatable" groups="base.group_website_publisher">
                        <a data-action="edit" href="#"><span class="fa fa-pencil"/> EDIT PAGE</a>
                    </li>
                    <li t-if="translatable" groups="base.group_website_publisher">
                        <a data-action="translate" href="#">TRANSLATE</a>
                    </li>
                    <li t-if="translatable" groups="base.group_website_publisher">
                        <a data-action="edit_master" href="#">or Edit Master</a>
                    </li>
                </ul>
            </nav>
        </xpath><commit_msg>[FIX] website: hide page edition buttons on mobile<commit_after><?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- Front-end/Back-end integration -->
    <template groups="base.group_user" id="user_navbar" inherit_id="website.layout">
        <xpath expr="//body" position="attributes">
            <attribute name="class">o_connected_user</attribute>
        </xpath>
        <xpath expr="//body/div['id=wrawrap']" position="before">
            <nav t-if="website and menu_data" id="oe_main_menu_navbar" class="o_main_navbar">
                <ul id="oe_applications">
                    <li class="dropdown active">
                        <a class="dropdown full" data-toggle="dropdown" href="#">
                            <i class="fa fa-th-large"/> WEBSITE <b class="caret"/>
                        </a>
                        <ul class="dropdown-menu">
                            <li t-as="menu" t-foreach="menu_data['children']">
                                <t t-set="debug_param" t-value="'?&amp;debug=' if debug else ''"/>
                                <a t-att-class="'oe_menu_toggler' if menu.get('children') else 'oe_menu_leaf'" t-att-data-action-id="menu['action'] and menu['action'].split(',')[1] or ''" t-att-data-action-model="menu['action'] and menu['action'].split(',')[0] or ''" t-att-data-menu="menu['id']" t-att-href="'/web%s#menu_id=%s&amp;action=%s' % (debug_param, menu['id'], menu['action'] and menu['action'].split(',')[1] or '')">
                                    <i t-attf-class="fa #{menu.get('icon')} fa-lg fa-fw" t-if="menu.get('icon')"/>
                                    <span class="oe_menu_text">
                                        <t t-esc="menu['name']"/>
                                    </span>
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>

                <button type="button" class="fa fa-bars pull-right visible-xs-block o_mobile_menu_toggle"/>

                <div class="o_menu_brand">Website</div>

                <ul class="o_menu_sections">
                    <!-- Promote -->
                    <li class="dropdown" groups="base.group_website_designer">
                        <a class="dropdown-toggle waves" data-toggle="dropdown" href="#" id="promote-menu-button">Promote</a>
                        <ul class="dropdown-menu oe_promote_menu" role="menu">
                            <li><a data-action="promote-current-page" href="#" title="Promote page on the web">Optimize SEO</a></li>
                            <li><a href="https://www.adspike.com" title="Optimize your AdWords account">Optimize AdWords Campaign</a></li>
                        </ul>
                    </li>
                    <!-- Content -->
                    <li class="dropdown content" groups="base.group_website_publisher" t-if="editable">
                        <a id="content-menu-button" class="dropdown-toggle waves" data-toggle="dropdown" href="#">Content</a>
                        <ul class="dropdown-menu oe_content_menu" role="menu">
                            <li groups="base.group_website_designer">
                                <a data-action="edit_menu" href="#" title="Edit Top Menu">Edit Menu</a>
                            </li>
                            <li t-if="deletable" groups="base.group_website_designer"><a href="#" data-action="rename_page">Rename Page</a></li>
                            <li t-if="deletable" groups="base.group_website_designer"><a href="#" data-action="delete_page">Delete Page</a></li>
                        </ul>
                    </li>
                    <!-- Customize -->
                    <li class="dropdown" groups="base.group_website_designer" id="customize-menu">
                        <a class="dropdown-toggle waves" data-toggle="dropdown" href="#" id="customize-menu-button">Customize</a>
                        <ul class="dropdown-menu" role="menu">
                            <li id="html_editor"><a data-action="ace" href="#advanced-view-editor">HTML Editor</a></li>
                            <li id="theme_customize"><a href="#">Customize Theme</a></li>
                            <li id="install_apps"><a href="/web#return_label=Website&amp;action=website.action_module_website">Install Apps</a></li>
                            <li class="divider"/>
                        </ul>
                    </li>
                    <!-- Help -->
                    <li class="dropdown">
                        <a class="dropdown-toggle waves" data-toggle="dropdown" href="#" id="help-menu-button">Help</a>
                        <ul class="dropdown-menu" id="help-menu" role="menu">
                            <li class="dropdown-header">HELP &amp; TUTORIALS</li>
                        </ul>
                    </li>
                </ul>

                <ul class="o_menu_systray hidden-xs">
                    <!-- Mobile preview -->
                    <li class="o_mobile_preview">
                        <a data-action="show-mobile-preview" href="#"><span title="Mobile preview" class="fa fa-mobile"/></a>
                    </li>
                    <!-- Page Edition -->
                    <li groups="base.group_website_publisher,base.group_website_designer">
                        <a data-action="new_page" href="#" data-toggle="modal" data-target="#o_website_add_page_modal"><span class="fa fa-plus"/> NEW PAGE</a>
                    </li>
                    <li t-if="not translatable" groups="base.group_website_publisher">
                        <a data-action="edit" href="#"><span class="fa fa-pencil"/> EDIT PAGE</a>
                    </li>
                    <li t-if="translatable" groups="base.group_website_publisher">
                        <a data-action="translate" href="#">TRANSLATE</a>
                    </li>
                    <li t-if="translatable" groups="base.group_website_publisher">
                        <a data-action="edit_master" href="#">or Edit Master</a>
                    </li>
                </ul>
            </nav>
        </xpath>
{'fraction_non_alphanumeric': 0.16052396062159305, 'fraction_numerical': 0.000976324139614352, 'mean_word_length': 1.5396694214876032, 'pattern_counts': {'":': 0, '<': 255, '<?xml version=': 2, '>': 255, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5928501', 'n_tokens_mistral': 3436, 'n_tokens_neox': 3232, 'n_words': 578}