diff options
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/table_builder_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb index f15019458..61812a427 100644 --- a/app/helpers/table_builder_helper.rb +++ b/app/helpers/table_builder_helper.rb @@ -186,6 +186,12 @@ module TableBuilderHelper columns.each do |column| value = column.value(item) + if column.linkable? + path = column.link_to(item) + bcont << content_tag(:td, link_to(value, path), title: 'Voir') + next # TODO: temporary for testing, fix all the stuff below + end + if column_is_linkable?(column) # Build a link to the `item` polymorph_url = URL.polymorphic_url_parts( |
