diff options
| author | Xinhui | 2017-12-14 11:54:40 +0100 |
|---|---|---|
| committer | Zog | 2017-12-19 13:21:49 +0100 |
| commit | a8dee986c3b9666c1727c1a65e4bcc6a20deed6b (patch) | |
| tree | 9264ef9cd50be70c70e661f124d3116383035785 | |
| parent | 24df9992da672f84ec22435449bcd985fb2d3ed0 (diff) | |
| download | chouette-core-a8dee986c3b9666c1727c1a65e4bcc6a20deed6b.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' |
