aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorTeddy Wing2017-06-12 16:13:34 +0200
committerTeddy Wing2017-06-12 16:13:34 +0200
commitd488e4e7251d3e0cc5b8ffe8ddbe6960fa99d14c (patch)
treecda7bfca2b12f739c035292c78df897a44f8f9e4 /app
parente7b663195bcf3370a4cca10d97453e62101e3f38 (diff)
downloadchouette-core-d488e4e7251d3e0cc5b8ffe8ddbe6960fa99d14c.tar.bz2
TableBuilder: Add a couple TODOs
I had added these last week uncommitted, but still haven't gotten to them. Figure I should just commit them to save them and remove them when I get to them. Refs #3479
Diffstat (limited to 'app')
-rw-r--r--app/helpers/table_builder_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb
index 090f78c0a..7cdc7eabb 100644
--- a/app/helpers/table_builder_helper.rb
+++ b/app/helpers/table_builder_helper.rb
@@ -127,6 +127,7 @@ module TableBuilderHelper
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}")