diff options
| author | Teddy Wing | 2017-06-15 14:44:25 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-15 14:44:25 +0200 |
| commit | 22b4146541ce721447b2364c390c2dfe1efae8ef (patch) | |
| tree | 72436bd63d74ea80f0f439782408fc8c35f7882e | |
| parent | 3b621ee93c5097c55bd4ce4c7bdecdaa18c6f9ab (diff) | |
| download | chouette-core-22b4146541ce721447b2364c390c2dfe1efae8ef.tar.bz2 | |
LinksHelper: Rename `#destroy_link` to #destroy_link_content`
Since this helper method doesn't actually give an `<a>` tag, it doesn't
make sense to call it just -link.
Refs #3479
| -rw-r--r-- | app/decorators/referential_decorator.rb | 2 | ||||
| -rw-r--r-- | app/helpers/links_helper.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/decorators/referential_decorator.rb b/app/decorators/referential_decorator.rb index 8b3b54f2a..b514a38df 100644 --- a/app/decorators/referential_decorator.rb +++ b/app/decorators/referential_decorator.rb @@ -40,7 +40,7 @@ class ReferentialDecorator < Draper::Decorator href: h.referential_path(object), method: :delete, data: { confirm: h.t('referentials.actions.destroy_confirm') }, - content: h.destroy_link + content: h.destroy_link_content ) end diff --git a/app/helpers/links_helper.rb b/app/helpers/links_helper.rb index 48cfe9ca4..b9923db2f 100644 --- a/app/helpers/links_helper.rb +++ b/app/helpers/links_helper.rb @@ -1,5 +1,5 @@ module LinksHelper - def destroy_link + def destroy_link_content content_tag(:span, nil, class: 'fa fa-trash') + t('actions.destroy') end end |
