FINALLY I found the place where icons are defined to be primary (outside of dropdown) or secondary (inside dropdown)
This allows us to put the "edit settings" icon outside of the dropdown menu, where it belongs.
So finally we have a Moodle Boost interface that does not annoy our users:
The solution, for anyone who wants to replicate it, is:
- in /course/lib.php you can edit which icons are primary and which are secondary, we changed it like this:
- // Update. -> $actions'update' = new action_menu_link_primary
- // Hide/Show/Available/Unavailable. -> $actions'show' = new action_menu_link_primary (change both entries!)
- // Groupmode. -> $actions'update' = new action_menu_link_secondary (whoever made this primary should be excluded from doing any more changes in moodle - seriously what the hell were you thinking?)
- To put the dropdown menu on the right side of the other icons, change their order in /theme/boost/templates/core/action_menu.mustache so that it looks like this:
{{#items}}{{> core/action_menu_item }}{{/items}}
{{#prioritise}}{{> core/action_menu_trigger }}{{/prioritise}}
{{^prioritise}}{{> core/action_menu_trigger }}{{/prioritise}} - To fix formatting of icons for activities without group mode, delete this one line from /theme/boost/templates/core/action_menu_item.mustache:
{{#actionmenufiller}}<span class="filler"> </span>{{/actionmenufiller}}
Hope this helps other people which are unhappy with the state of Boost. I will try and push for this to be included in Moodle core.