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
avoid title element on multi action table header
ulfertsdea4c8028331
diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rbindex 03537fc030a..d9429563f6e 100644--- a/app/helpers/sort_helper.rb+++ b/app/helpers/sort_helper.rb@@ -317,8 +317,8 @@ module SortHelper# </div># </th>#- def sort_header_tag(column, allowed_params: nil, **options)- with_sort_header_options(column, allowed_params:, **options) do |col, cap, default_order, **opts|+ def sort_header_tag(column, allowed_params: nil, **)+ with_sort_header_options(column, with_title: true, allowed_params:, **) do |col, cap, default_order, **opts|sort_link(col, cap, default_order, **opts)endend@@ -328,15 +328,15 @@ module SortHelper## This is a more specific version of #sort_header_tag.# For "filter by" to work properly, you must pass a Hash for `filter_column_mapping`.- def sort_header_with_action_menu(column, all_columns, filter_column_mapping = {}, allowed_params: nil, **options)- with_sort_header_options(column.attribute, allowed_params:, **options) do |_col, cap, default_order, **opts|- action_menu(column, all_columns, cap, default_order, filter_column_mapping, **opts)+ def sort_header_with_action_menu(column, all_columns, filter_column_mapping = {}, allowed_params: nil, **)+ with_sort_header_options(column.attribute, with_title: false, allowed_params:, **) do |_col, cap, default_order, **opts|+ action_menu(column, all_columns, cap, default_order, filter_column_mapping, **opts.except(:title))endend# Extracts the given `options` and provides them to a block.# See #sort_header_tag and #sort_header_with_action_menu for usage examples.- def with_sort_header_options(column, allowed_params: nil, **options)+ def with_sort_header_options(column, allowed_params: nil, with_title: false, **options)caption = get_caption(column, options)default_order = options.delete(:default_order) || "asc"@@ -344,7 +344,7 @@ module SortHelperparam = options.delete(:param) || :sortdata = options.delete(:data) || {}- options[:title] = sort_header_title(column, caption, options)+ options[:title] = sort_header_title(column, caption, options) if with_titleoptions[:icon_only_header] = column == :favoredwithin_sort_header_tag_hierarchy(options, sort_class(column)) do