aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/newapplication_helper.rb
diff options
context:
space:
mode:
authorjpl2017-02-06 15:19:03 +0100
committerjpl2017-02-06 15:19:03 +0100
commitaee4fc870f4f7b974eb40a132573aa73c18042df (patch)
tree2ef66861626986513150b91e950439c2e581caf0 /app/helpers/newapplication_helper.rb
parent13890fc916aff0e0b85eee7fae9ff383a3faffde (diff)
downloadchouette-core-aee4fc870f4f7b974eb40a132573aa73c18042df.tar.bz2
Refs #2535: updating table builder with column type 'name'
Diffstat (limited to 'app/helpers/newapplication_helper.rb')
-rw-r--r--app/helpers/newapplication_helper.rb6
1 files changed, 5 insertions, 1 deletions
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?