From aee4fc870f4f7b974eb40a132573aa73c18042df Mon Sep 17 00:00:00 2001 From: jpl Date: Mon, 6 Feb 2017 15:19:03 +0100 Subject: Refs #2535: updating table builder with column type 'name' --- app/helpers/newapplication_helper.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/helpers/newapplication_helper.rb') diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb index eee833562..010ff71f6 100644 --- a/app/helpers/newapplication_helper.rb +++ b/app/helpers/newapplication_helper.rb @@ -27,7 +27,11 @@ module NewapplicationHelper else item.try(attribute) end - bcont << content_tag(:td, value) + if attribute == "name" + bcont << content_tag(:td, link_to(value, item), title: 'Voir') + else + bcont << content_tag(:td, value) + end end bcont << content_tag(:td, links_builder(item, actions), class: 'actions') if actions.any? -- cgit v1.2.3