{{!
    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/moodlenet/send_activity_modal_done
    This template renders done state for share modal.
    Example context (json):
    {
        "success": true,
        "sitesupporturl": "https://moodle.test/contactsitesupport.php"
    }
}}
<div class="moodlenet-share-modal-content text-center">
    <div class="moodlenet-circle-status{{#success}} success{{/success}}{{^success}} fail{{/success}}">
        <span class="status-icon pt-5{{#success}} text-success{{/success}}{{^success}} text-danger{{/success}}">
            {{#success}}
                {{#pix}} t/check, core {{/pix}}
            {{/success}}
            {{^success}}
                {{#pix}} fp/cross, theme {{/pix}}
            {{/success}}
        </span>
        <span class="status-text fw-bold h5 pt-5">
            {{#success}}
                {{#str}} moodlenet:sharesuccesstitle, moodle {{/str}}
            {{/success}}
            {{^success}}
                {{#str}} moodlenet:sharefailtitle, moodle {{/str}}
            {{/success}}
        </span>
    </div>
    <div class="result pt-2">
        <span class="d-block h6 fw-normal pt-1 result-text">
            {{#success}}
                {{#str}} moodlenet:sharesuccesstext, moodle {{/str}}
            {{/success}}
            {{^success}}
                {{#sitesupporturl}}
                    {{#str}} moodlenet:sharefailtextwithsitesupport, moodle, {{sitesupporturl}} {{/str}}
                {{/sitesupporturl}}
                {{^sitesupporturl}}
                    {{#str}} moodlenet:sharefailtext, moodle {{/str}}
                {{/sitesupporturl}}
            {{/success}}
        </span>
    </div>
</div>
