{{!
    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 mod_minilesson/fiction_charactermessage

    TODO describe template fiction_charactermessage

    Example context (json):
    {
    }
}}
<div class="d-flex chat-window">
    {{#picturesrc}}
        <div class="character_profile_icon">
            <img class="character_profile_icon-image" src="{{{ . }}}">
        </div>
    {{/picturesrc}}
    <div class="charactercontainer {{classname}} {{#charactername}}has-charactername{{/charactername}}">
        {{#charactername}}
            <div class="charactername text-primary pt-2">{{{ . }}}</div>
        {{/charactername}}
        {{^charactername}}
            <div class="pt-2"></div>
        {{/charactername}}
        {{#charactermedia}}
            <div class="mediacontainer">{{{ . }}}</div>
        {{/charactermedia}}
        {{#charactertext}}
            <div class="charactertext">{{{ . }}}</div>
        {{/charactertext}}
    </div>
</div>