diff options
| author | teddywing | 2018-02-13 13:49:29 +0100 |
|---|---|---|
| committer | GitHub | 2018-02-13 13:49:29 +0100 |
| commit | 84891328d7ea0c3b82ba3fa3a73b7c49f317855e (patch) | |
| tree | b1b49aced5f513e2170a7a6e85ee85d067a35a84 | |
| parent | 56de2fc715ccaeb908d1646c1f554ed50c2a1de8 (diff) | |
| parent | 5877ed29f0566ba07247aaa1c10e0dd98df1efc7 (diff) | |
| download | chouette-core-84891328d7ea0c3b82ba3fa3a73b7c49f317855e.tar.bz2 | |
Merge pull request #301 from af83/5150-update-decorators
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" |
