|
|
|
@ -37,15 +37,13 @@ module RbMasterBacklogsHelper |
|
|
|
|
include Redmine::I18n |
|
|
|
|
|
|
|
|
|
def render_backlog_menu(backlog) |
|
|
|
|
closeJS = "jQuery(this).closest('ul').siblings('.menu-trigger').toggleClass('open icon-pulldown-up icon-pulldown');" |
|
|
|
|
openJS = "jQuery(this).toggleClass('open icon-pulldown-up icon-pulldown');" |
|
|
|
|
|
|
|
|
|
# associated javascript defined in taskboard.js |
|
|
|
|
content_tag(:div, class: 'menu') do |
|
|
|
|
[ |
|
|
|
|
content_tag(:div, '', class: "menu-trigger icon-context icon-pulldown icon-small", onClick: openJS), |
|
|
|
|
content_tag(:div, '', class: "menu-trigger icon-context icon-pulldown icon-small"), |
|
|
|
|
content_tag(:ul, class: 'items') do |
|
|
|
|
backlog_menu_items_for(backlog).map { |item| |
|
|
|
|
content_tag(:li, item, class: 'item', onClick: closeJS) |
|
|
|
|
content_tag(:li, item, class: 'item') |
|
|
|
|
}.join.html_safe |
|
|
|
|
end |
|
|
|
|
].join.html_safe |
|
|
|
|