{{!
    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 bbbext_bnx/recording_row_actionbar

    Render the action buttons for a single recording entry.

    Example context (json):
    {
        "id": "recording-actionbar-123",
        "recordingid": "123",
        "tools": [
            {
                "url": "#",
                "id": "recording-protect-123",
                "classes": "action-icon",
                "attributes": [
                    {"name": "data-action", "value": "protect"},
                    {"name": "data-require-confirmation", "value": "0"}
                ],
                "text": "Protect"
            },
            {
                "disabled": true,
                "classes": "action-icon iconsmall disabled",
                "icon": {
                    "key": "i/lock",
                    "component": "moodle",
                    "title": "Protect"
                },
                "attributes": [
                    {"name": "id", "value": "disabled-recording-protect-123"},
                    {"name": "aria-disabled", "value": "true"}
                ],
                "text": ""
            }
        ]
    }
}}
<div {{#id}}id="{{.}}"{{/id}} {{#recordingid}}data-recordingid="{{.}}"{{/recordingid}} class="bnx-actionbar">
    <div class="d-flex flex-row flex-nowrap align-items-center">
        {{#tools}}
            <div class="bnx-actionbar-item">
                {{>core/action_link}}
            </div>
        {{/tools}}
    </div>
</div>
