diff options
| author | jpl | 2017-08-16 16:52:56 +0200 | 
|---|---|---|
| committer | jpl | 2017-08-16 16:52:56 +0200 | 
| commit | cbb90d47fd539025180efb9d79262a9d4f2674be (patch) | |
| tree | 5c1a32cf92150c9c8ba7056ac369a54308261166 /app/helpers/table_builder_helper.rb | |
| parent | f4f9f04f41696dd59cc982d8ea7a8ed862536622 (diff) | |
| download | chouette-core-cbb90d47fd539025180efb9d79262a9d4f2674be.tar.bz2 | |
Refs #4256: Fix table_builder link management, adding links to gear menu on imports#index
Diffstat (limited to 'app/helpers/table_builder_helper.rb')
| -rw-r--r-- | app/helpers/table_builder_helper.rb | 6 | 
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),  | 
