aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorjpl2017-08-16 16:52:56 +0200
committerjpl2017-08-16 16:52:56 +0200
commitcbb90d47fd539025180efb9d79262a9d4f2674be (patch)
tree5c1a32cf92150c9c8ba7056ac369a54308261166 /app/helpers
parentf4f9f04f41696dd59cc982d8ea7a8ed862536622 (diff)
downloadchouette-core-cbb90d47fd539025180efb9d79262a9d4f2674be.tar.bz2
Refs #4256: Fix table_builder link management, adding links to gear menu on imports#index
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/table_builder_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb
index 375697bec..b5497b600 100644
--- a/app/helpers/table_builder_helper.rb
+++ b/app/helpers/table_builder_helper.rb
@@ -96,7 +96,9 @@ module TableBuilderHelper
end
# Inserts a blank column for the gear menu
- hcont << content_tag(:th, '') if has_links
+ if has_links || collection.last.try(:action_links).try(:any?)
+ hcont << content_tag(:th, '')
+ end
hcont.join.html_safe
end
@@ -132,7 +134,7 @@ module TableBuilderHelper
end
end
- if links.any?
+ if links.any? || item.try(:action_links).try(:any?)
bcont << content_tag(
:td,
build_links(item, links),