diff options
| author | jpl | 2016-10-07 15:52:44 +0200 | 
|---|---|---|
| committer | jpl | 2016-10-07 15:52:44 +0200 | 
| commit | 58c529ecfb27e6f3aea1cf5909dfd86ae1a1c6a9 (patch) | |
| tree | 11a095d40e4998baf8e1da3d148a240ec86f3486 | |
| parent | 53099780076f7d5d11155900473c3452bd731a64 (diff) | |
| download | chouette-core-58c529ecfb27e6f3aea1cf5909dfd86ae1a1c6a9.tar.bz2 | |
adding link builder to table builder
| -rw-r--r-- | app/helpers/refobjects_helper.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/app/helpers/refobjects_helper.rb b/app/helpers/refobjects_helper.rb index cc3580372..8dbc2bc07 100644 --- a/app/helpers/refobjects_helper.rb +++ b/app/helpers/refobjects_helper.rb @@ -32,17 +32,17 @@ module RefobjectsHelper      actions.each do |action|        if action == "show" -        showlink = link_to({controller: params[:controller].to_s, action: action, id: item.id}, class: 'btn btn-default') do +        showlink = link_to({controller: params[:controller], action: action, id: item.id}, class: 'btn btn-default') do            content_tag :span, "", class: 'fa fa-eye'          end          link << showlink        elsif action == "edit" -        editlink = link_to({controller: params[:controller].to_s, action: action, id: item.id}, class: 'btn btn-default') do +        editlink = link_to({controller: params[:controller], action: action, id: item.id}, class: 'btn btn-default') do            content_tag :span, "", class: 'fa fa-pencil'          end          link << editlink        elsif action == "delete" -        deletelink = link_to({controller: params[:controller].to_s, action: "show", id: item.id}, method: :delete, data: { confirm: 'Are you sure?'}, class: 'btn btn-default') do +        deletelink = link_to({controller: params[:controller], action: "show", id: item.id}, method: :delete, data: { confirm: 'Are you sure?'}, class: 'btn btn-default') do            content_tag :span, "", class: 'fa fa-trash-o'          end          link << deletelink | 
