diff options
| -rw-r--r-- | app/decorators/time_table_decorator.rb | 2 | ||||
| -rw-r--r-- | config/locales/journey_patterns.en.yml | 1 | 
2 files changed, 2 insertions, 1 deletions
| diff --git a/app/decorators/time_table_decorator.rb b/app/decorators/time_table_decorator.rb index 95b1fd959..e4f9d7dbc 100644 --- a/app/decorators/time_table_decorator.rb +++ b/app/decorators/time_table_decorator.rb @@ -14,7 +14,7 @@ class TimeTableDecorator < AF83::Decorator        l.href { [:edit, context[:referential], object] }      end -    instance_decorator.action_link if: ->{ object.calendar }, secondary: true do |l| +    instance_decorator.action_link policy: :actualize, if: ->{ object.calendar }, secondary: true do |l|        l.content t('actions.actualize')        l.href do           h.actualize_referential_time_table_path( diff --git a/config/locales/journey_patterns.en.yml b/config/locales/journey_patterns.en.yml index e5248c29c..9d9bc21e2 100644 --- a/config/locales/journey_patterns.en.yml +++ b/config/locales/journey_patterns.en.yml @@ -6,6 +6,7 @@ en:        vehicle_journeys_count: "Vehicle journeys: %{count}"        vehicle_journey_at_stops: "Vehicle journey at stops"      actions: +      index: "Journey patterns"        new: "Add a new journey_pattern"        edit: "Edit this journey pattern"        destroy: "Remove this journey pattern" | 
