{{!
    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_grades/category_settings

    This template renders action menu for a given cell.
    Example context (json):
    {
        "aggregation": "Natural",
        "aggregateonlygraded": 1,
        "aggregateoutcomes": 0,
        "droplow": 1,
        "keephigh": 1,
        "calculatedgrade": "calculated grade"
    }
}}
<div class="d-flex flex-wrap" role="list">
    {{#calculatedgrade}}
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
            <strong>{{calculatedgrade}}</strong>
        </span>
    {{/calculatedgrade}}
    {{#aggregation}}
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
            <strong>{{aggregation}}</strong>
        </span>
    {{/aggregation}}
    {{#aggregateonlygraded}}
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
            <strong>{{#str}}aggregateonlygraded, grades{{/str}}</strong>
        </span>
    {{/aggregateonlygraded}}
    {{#aggregateoutcomes}}
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
            <strong>{{#str}}aggregateoutcomes, grades{{/str}}</strong>
        </span>
    {{/aggregateoutcomes}}
    {{#droplow}}
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
            <strong>{{#str}}droplowestvalues, grades, {{droplow}}{{/str}}</strong>
        </span>
    {{/droplow}}
    {{#keephigh}}
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
            <strong>{{#str}}keephigh, grades{{/str}}</strong>
        </span>
    {{/keephigh}}
</div>
