{{!
    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.

    Edwiser RemUI
    @package   theme_remui
    @copyright (c) 2020 WisdmLabs (https://wisdmlabs.com/)
    @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

}}
{{!
    @template theme_remui/activity_navigation

    Display the activity navigation for all activities in a course

    Context variables required for this template:

    Example context (json):
    {
    }
}}
<div class="dropdown blocksetting ml-2">
    <button tabindex="0" class="text-body dropdown-toggle icon-no-margin" id="blocksetting-{{id}}" data-toggle="dropdown">
        <i class="icon fa fa-cog fa-fw " title="Actions menu" aria-label="Actions menu"></i>
    </button>
    <div class="dropdown-menu dropdown-menu-right menu align-tr-br" aria-labelledby="blocksetting-{{id}}">
        <a href="#" class="dropdown-item" data-contextid="{{contextid}}" data-blockname="{{id}}" data-action="edit">
            {{#str}} editblockview, local_edwiserreports {{/str}}
        </a>
        <a href="#" class="dropdown-item" data-contextid="{{contextid}}" data-blockname="{{id}}" data-action="hide" data-hidden="{{hidden}}">
            {{# hiddenblock }}
                {{#str}} unhide, local_edwiserreports {{/str}}
            {{/ hiddenblock }}
            {{^ hiddenblock }}
                {{#str}} hide, local_edwiserreports {{/str}}
            {{/ hiddenblock }}
        </a>
        {{# caneditadv }}
        <a href="#" class="dropdown-item" data-contextid="{{contextid}}" data-blockname="{{id}}" data-action="editcap">
            {{#str}} editcapability, local_edwiserreports {{/str}}
        </a>
        {{/ caneditadv }}
    </div>
</div>
