aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/helpers/table_builder_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb
index 1244464fc..112a2f033 100644
--- a/app/helpers/table_builder_helper.rb
+++ b/app/helpers/table_builder_helper.rb
@@ -98,8 +98,9 @@ module TableBuilderHelper
else
item.try(column.attribute)
end
- # if so this column's contents get transformed into a link to the object
+
if column.attribute == 'name' || column.attribute == 'comment'
+ # Build a link to the `item`
polymorph_url = polymorphic_url_parts(item)
bcont << content_tag(:td, link_to(value, polymorph_url), title: 'Voir')
else