diff options
| author | Teddy Wing | 2017-06-19 17:29:32 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-06-19 17:42:05 +0200 | 
| commit | 9de20c519a60443157ed277a1c68b46f00229598 (patch) | |
| tree | 21fa2102c3e49b8584627dccadc80c86749d7cc1 /app/controllers/time_tables_controller.rb | |
| parent | 4e81e22aff65221316c1528a3f2fa82272345c65 (diff) | |
| download | chouette-core-9de20c519a60443157ed277a1c68b46f00229598.tar.bz2 | |
TimeTables#show: Render header buttons from #action_links
This enables us to reuse these links in other parts of the application.
Get the links from `TimeTableDecorator#action_links`.
Refs #3479
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
| -rw-r--r-- | app/controllers/time_tables_controller.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index 5c4552afb..3704f2885 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -14,6 +14,10 @@ class TimeTablesController < ChouetteController      @year = params[:year] ? params[:year].to_i : Date.today.cwyear      @time_table_combination = TimeTableCombination.new      show! do +      @time_table = @time_table.decorate(context: { +        referential: @referential +      }) +        build_breadcrumb :show      end    end | 
