diff options
| author | Zog | 2018-02-12 10:19:40 +0100 |
|---|---|---|
| committer | Zog | 2018-02-12 10:19:40 +0100 |
| commit | 5877ed29f0566ba07247aaa1c10e0dd98df1efc7 (patch) | |
| tree | a1e540177ef267d9138099c5961f27d038e095f2 | |
| parent | 7f044f8ab9cf9394c4180f3d467a74bd95dcd398 (diff) | |
| download | chouette-core-5877ed29f0566ba07247aaa1c10e0dd98df1efc7.tar.bz2 | |
Refs #5150; Update decorators
| -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" |
