From bb41dd792180cf6d000f5263f9149acf98ed1b2a Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Thu, 27 Aug 2020 13:23:24 +0800 Subject: [PATCH] MDL-69262 core: Use core/action_menu_link in core/action_menu_trigger * Introduce the "actionmenulinkclasses" block in the action_menu_link template so other templates importing it can have the option to override its classes. * Have the action menu trigger template use the action menu link template to reduce code duplication. --- lib/templates/action_menu_link.mustache | 9 ++++++++- lib/templates/action_menu_trigger.mustache | 13 +++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/templates/action_menu_link.mustache b/lib/templates/action_menu_link.mustache index 0e9f42af6cd..67affd7429f 100644 --- a/lib/templates/action_menu_link.mustache +++ b/lib/templates/action_menu_link.mustache @@ -27,7 +27,14 @@ } }} {{^disabled}} - {{#icon}}{{#pix}}{{key}}, {{component}}, {{title}}{{/pix}}{{/icon}}{{#showtext}}{{{text}}}{{/showtext}} + + {{#icon}} + {{#pix}}{{key}}, {{component}}, {{title}}{{/pix}} + {{/icon}} + {{#showtext}} + {{{text}}} + {{/showtext}} + {{/disabled}} {{#disabled}} {{#icon}}{{#pix}}{{key}},{{component}},{{title}}{{/pix}}{{/icon}}{{{text}}} diff --git a/lib/templates/action_menu_trigger.mustache b/lib/templates/action_menu_trigger.mustache index cf34a04a6f6..93f483fcde7 100644 --- a/lib/templates/action_menu_trigger.mustache +++ b/lib/templates/action_menu_trigger.mustache @@ -95,16 +95,9 @@