{{! 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 . }} {{! @template mod_forum/forum_action_menu This template renders action menu for a forum discussion. Context variables required for this template: * capabilities Object - Uses the following attributes: * manage boolean - Whether to render the lock action. * favourite boolean - Whether to render the star/unstar action. * pin boolean - Whether to render the star/unstar action. * subscribe boolean - Whether to render the subscribe action. * id int - The discussion ID. * forumid int - The forum ID. * istimelocked boolean - Whether this forum is time locked. * settings Object - Uses the following attributes: * excludetext boolean - Whether to show an icon only. * togglemoreicon - Whether to show a toggle-more icon or not. Example context (json): { "capabilities": { "manage": true, "favourite": true, "pin": true, "subscribe": true }, "id": 1, "forumid": 1, "istimelocked": false, "settingsselector": true, "settings": { "excludetext": false, "togglemoreicon": false } } }}