OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Render toggler in ruby
Oliver Güntherfa4c26550ab3
diff --git a/frontend/src/app/core/main-menu/main-menu-navigation.service.ts b/frontend/src/app/core/main-menu/main-menu-navigation.service.tsindex 7e89d4b2476..f58fc2b3f4b 100644--- a/frontend/src/app/core/main-menu/main-menu-navigation.service.ts+++ b/frontend/src/app/core/main-menu/main-menu-navigation.service.ts@@ -73,7 +73,7 @@ export class MainMenuNavigationService {selected?.scrollIntoView();// Recreate toggler- const toggler = this.recreateToggler();+ //const toggler = this.recreateToggler();// Emit first activeconst active = jQuery('#main-menu .menu_root > li.open').data('name');@@ -86,9 +86,8 @@ export class MainMenuNavigationService {// 1. unbind the current click functions.unbind('click')// 2. wrap each in a span that we'll use for the new click element- .wrapInner('<span class="ellipsis" style="display: flex; align-items: center"/>')+ .wrapInner('<span class="ellipsis" style="display: flex; align-items: center"/>');// 3. reinsert the <span class="toggler"> so that it sits outside of the above- .after(toggler);function navigateUp(this:any, event:any) {event.preventDefault();diff --git a/lib/redmine/menu_manager/menu_helper.rb b/lib/redmine/menu_manager/menu_helper.rbindex 033fe1633a8..d6f518387ab 100644--- a/lib/redmine/menu_manager/menu_helper.rb+++ b/lib/redmine/menu_manager/menu_helper.rb@@ -146,7 +146,14 @@ module Redmine::MenuManager::MenuHelperdef render_wrapped_menu_node(node, project)html_id = node.html_options[:id] || node.namecontent_tag(:div, class: 'main-item-wrapper', id: "#{html_id}-wrapper") do- render_single_menu_node(node, project)+ concat render_single_menu_node(node, project)+ concat render_menu_toggler+ end+ end++ def render_menu_toggler+ content_tag(:a, class: 'toggler') do+ spot_icon('arrow-right3', size: '1')endend