diff options
| author | Xinhui | 2017-12-14 11:54:40 +0100 |
|---|---|---|
| committer | Xinhui | 2017-12-14 11:54:40 +0100 |
| commit | 840b31bd389e6fabaa6336593c33c6b15b0de3d8 (patch) | |
| tree | 2449699931310e3ee1ad1a0ccd6c2d0d8b0e32f6 | |
| parent | 75b22972935ae660209430255cebabb2e781542b (diff) | |
| download | chouette-core-840b31bd389e6fabaa6336593c33c6b15b0de3d8.tar.bz2 | |
Fix duplicate link on dropdown menu & label
Refs #5300
| -rw-r--r-- | app/decorators/company_decorator.rb | 2 | ||||
| -rw-r--r-- | app/views/companies/index.html.slim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/decorators/company_decorator.rb b/app/decorators/company_decorator.rb index 9416c73ae..96a5175bc 100644 --- a/app/decorators/company_decorator.rb +++ b/app/decorators/company_decorator.rb @@ -37,7 +37,7 @@ class CompanyDecorator < Draper::Decorator if h.policy(object).destroy? links << Link.new( - content: t('companies.actions.destroy'), + content: h.t('companies.actions.destroy'), href: h.line_referential_company_path( context[:referential], object diff --git a/app/views/companies/index.html.slim b/app/views/companies/index.html.slim index 5d746642f..e031f3776 100644 --- a/app/views/companies/index.html.slim +++ b/app/views/companies/index.html.slim @@ -34,7 +34,7 @@ end \ ) \ ], - links: [:show, :edit], + links: [:show], cls: 'table has-search' = new_pagination @companies, 'pull-right' |
