diff options
| author | jpl | 2017-02-06 15:19:03 +0100 | 
|---|---|---|
| committer | jpl | 2017-02-06 15:19:03 +0100 | 
| commit | aee4fc870f4f7b974eb40a132573aa73c18042df (patch) | |
| tree | 2ef66861626986513150b91e950439c2e581caf0 /app/helpers/newapplication_helper.rb | |
| parent | 13890fc916aff0e0b85eee7fae9ff383a3faffde (diff) | |
| download | chouette-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.rb | 6 | 
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? | 
