aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorTeddy Wing2017-06-15 16:23:07 +0200
committerTeddy Wing2017-06-15 16:23:07 +0200
commitf60264c2a9d9dec59995270f0fc1c6e316c8af53 (patch)
tree424930bd414c8e9400ba431e23f3400dc9e61ede /app/helpers
parentc99836b34a0a87de2831cccba583cc3a1502d363 (diff)
downloadchouette-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
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/table_builder_helper.rb53
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(