{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template core_message/message_drawer_view_contacts_header

    This template will render the header for the contacts page of
    the message drawer.

    Classes required for JS:
    * none

    Data attributes required for JS:
    * All data attributes are required

    Context variables required for this template:
    * userid The logged in user id
    * urls The URLs for the popover

    Example context (json):
    {}

}}
<div class="hidden rui-message-header-margin w-100" aria-hidden="true" data-region="view-contacts">
    <div class="d-flex align-items-center w-100">
        {{#isdrawer}}
        <div class="align-self-stretch">
            <a href="#" class="ml-3 d-flex align-items-center btn-msg" data-route-back>
                {{> core_message/message_drawer_icon_back }}
            </a>
        </div>
        {{/isdrawer}}
        <h4 class="rui-message-heading ml-3">
            {{#str}} contacts, core_message {{/str}}
        </h4>
        <div class="mr-3 ml-auto">
            <button data-route="view-search" class="btn-msg" aria-label="{{#str}} search, core_search {{/str}}">
                <span class="sr-only">{{#str}} search, core_search {{/str}}</span>
                <svg height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="m14.5 14.5-3.75-3.75m-10.75-4.5c0-3.45178 2.79822-6.25 6.25-6.25 3.4518 0 6.25 2.79822 6.25 6.25 0 3.4518-2.7982 6.25-6.25 6.25-3.45178 0-6.25-2.7982-6.25-6.25z" fill="none" stroke="#626262" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" transform="translate(.75 .75)"/></svg>
            </button>
        </div>
    </div>
</div>
