diff options
| author | jpl | 2017-02-07 15:31:54 +0100 |
|---|---|---|
| committer | jpl | 2017-02-07 15:32:06 +0100 |
| commit | 9814d97e64b5b483ceb9d1a2f8fecc8a8da975be (patch) | |
| tree | 53ea539f825b2d09cb43015720650b401d248e0d /app/helpers/newapplication_helper.rb | |
| parent | c5848ae804d74064290dc4d9804b8766805c5b8b (diff) | |
| download | chouette-core-9814d97e64b5b483ceb9d1a2f8fecc8a8da975be.tar.bz2 | |
Refs #2535: updating i18n on table builder
Diffstat (limited to 'app/helpers/newapplication_helper.rb')
| -rw-r--r-- | app/helpers/newapplication_helper.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb index f8628d000..88aae9432 100644 --- a/app/helpers/newapplication_helper.rb +++ b/app/helpers/newapplication_helper.rb @@ -104,7 +104,7 @@ module NewapplicationHelper if policy(item).destroy? 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("table.#{action}") + txt = t("actions.#{action}") pic = content_tag :span, '', class: 'fa fa-trash' pic + txt end @@ -113,7 +113,7 @@ module NewapplicationHelper 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("table.#{action}") + txt = t("actions.#{action}") pic = content_tag :span, '', class: 'fa fa-trash' pic + txt end @@ -123,13 +123,13 @@ module NewapplicationHelper elsif action == :edit if policy(item).present? if policy(item).update? - content_tag :li, link_to(t("table.#{action}"), polymorph_url) + content_tag :li, link_to(t("actions.#{action}"), polymorph_url) end else - content_tag :li, link_to(t("table.#{action}"), polymorph_url) + content_tag :li, link_to(t("actions.#{action}"), polymorph_url) end else - content_tag :li, link_to(t("table.#{action}"), polymorph_url) + content_tag :li, link_to(t("actions.#{action}"), polymorph_url) end end.join.html_safe end @@ -155,7 +155,7 @@ module NewapplicationHelper tools = content_tag :ul do actions.collect do |action| - actitem = link_to '#', title: t("table.#{action}") do + actitem = link_to '#', title: t("actions.#{action}") do if action == :edit content_tag :span, '', class: 'fa fa-pencil' elsif action == :delete |
