diff options
| author | Teddy Wing | 2017-06-15 16:23:07 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-15 16:23:07 +0200 |
| commit | f60264c2a9d9dec59995270f0fc1c6e316c8af53 (patch) | |
| tree | 424930bd414c8e9400ba431e23f3400dc9e61ede | |
| parent | c99836b34a0a87de2831cccba583cc3a1502d363 (diff) | |
| download | chouette-core-f60264c2a9d9dec59995270f0fc1c6e316c8af53.tar.bz2 | |
TableBuilderHelper#build_links: Remove old commented code
This code is no longer relevant and has been superseded by
`TableBuilderHelper::CustomLinks`.
Refs #3479
| -rw-r--r-- | app/helpers/table_builder_helper.rb | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb index 11616c8e4..4d6fa0d31 100644 --- a/app/helpers/table_builder_helper.rb +++ b/app/helpers/table_builder_helper.rb @@ -115,62 +115,9 @@ module TableBuilderHelper ).map do |link| gear_menu_link(link) end.join.html_safe - - # actions.map do |action| - # polymorph_url = [] - # - # unless [:show, :delete].include? action - # polymorph_url << action - # end - # - # polymorph_url += polymorphic_url_parts(item) - # - # if action == :delete - # if policy(item).present? - # if policy(item).destroy? - # # TODO: This tag is exactly the same as the one below it - # content_tag :li, '', class: 'delete-action' do - # link_to(polymorph_url, method: :delete, data: { confirm: 'Etes-vous sûr(e) de vouloir effectuer cette action ?' }) do - # txt = t("actions.#{action}") - # pic = content_tag :span, '', class: 'fa fa-trash' - # pic + txt - # end - # end - # end - # else - # content_tag :li, '', class: 'delete-action' do - # link_to(polymorph_url, method: :delete, data: { confirm: 'Etes-vous sûr(e) de vouloir effectuer cette action ?' }) do - # txt = t("actions.#{action}") - # pic = content_tag :span, '', class: 'fa fa-trash' - # pic + txt - # end - # end - # end - # - # elsif action == :edit - # if policy(item).present? - # if policy(item).update? - # content_tag :li, link_to(t("actions.#{action}"), polymorph_url) - # end - # else - # content_tag :li, link_to(t("actions.#{action}"), polymorph_url) - # end - # elsif action == :archive - # unless item.archived? - # content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put) - # end - # elsif action == :unarchive - # if item.archived? - # content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put) - # end - # else - # content_tag :li, link_to(t("actions.#{action}"), polymorph_url) - # end - # end.join.html_safe end content_tag :div, trigger + menu, class: 'btn-group' - end def build_column_header( |
