{{!
    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 format_topcoll/sectioncm

    Collapsed Topics section course module template.

    Context variables required for this template:
    * activityinformation - The activity information.
    * availability - The availability.
    * cmmeta - The course module meta.
    * cmname - The course module name.
    * cmnameafterlink - The course module name after link.
    * contentpart - The content.
    * hasurl - The module has a URL as a link to it, i.e. a label won't.
    * indent - The type.

    Example context (json):
    {
        "activityinformation": "",
        "availability": "",
        "cmmeta": "",
        "cmname": "",
        "cmnameafterlink": "",
        "contentpart": "",
        "hasurl": true,
        "indent": "mod-indent"
    }
}}
<div>
    <div class="mod-indent-outer">
        <div class="{{indent}}"></div>
        <div>
            {{#cmname}}
            <div class="activityinstance">{{{cmname}}}{{{cmnameafterlink}}}</div>
            {{/cmname}}
            {{^hasurl}}{{{contentpart}}}{{/hasurl}}
            {{#activityinformation}}{{{activityinformation}}}{{/activityinformation}}
            {{{availability}}}
            {{#cmmeta}}
            <div class="ct-activity-meta-container">
                {{{cmmeta}}}
            </div>
            {{/cmmeta}}
            {{#hasurl}}{{{contentpart}}}{{/hasurl}}
        </div>
    </div>
</div>
