diff options
| author | Zog | 2018-01-16 16:08:38 +0100 |
|---|---|---|
| committer | Zog | 2018-01-25 17:17:59 +0100 |
| commit | 04e6d933e2c140dbdd24e29a6139d74fab3c386d (patch) | |
| tree | 969e80df3b5d1187cc57a98039d483de6f05c631 /app | |
| parent | 305c10faa98bcf157ca114293b634da32a16cc37 (diff) | |
| download | chouette-core-04e6d933e2c140dbdd24e29a6139d74fab3c386d.tar.bz2 | |
refs #5586; Slight improvements
Diffstat (limited to 'app')
| -rw-r--r-- | app/decorators/line_decorator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/decorators/line_decorator.rb b/app/decorators/line_decorator.rb index 728543592..cc0e3a605 100644 --- a/app/decorators/line_decorator.rb +++ b/app/decorators/line_decorator.rb @@ -33,7 +33,7 @@ class LineDecorator < AF83::Decorator instance_decorator.with_condition can_edit_line do action_link on: %i(index show), primary: :show, secondary: :index do |l| - l.content { h.t('lines.actions.edit') } + l.content {|l| l.primary? ? h.t('actions.edit') : h.t('lines.actions.edit') } l.href { h.edit_line_referential_line_path(context[:line_referential], object.id) } end |
