diff options
| author | jpl | 2017-07-17 14:41:11 +0200 |
|---|---|---|
| committer | jpl | 2017-07-17 14:41:56 +0200 |
| commit | 655bd61e19ecf68f5c4b90966d619bde0990aa25 (patch) | |
| tree | 1872fa52939903ecf3b6fdd8d5b0db8f9206fcaa /app/controllers | |
| parent | 778af76259115843d728a1a4983cabd510ad8c4b (diff) | |
| download | chouette-core-655bd61e19ecf68f5c4b90966d619bde0990aa25.tar.bz2 | |
Refs #4108: adding workbenches#index
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/workbenches_controller.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/workbenches_controller.rb b/app/controllers/workbenches_controller.rb index 22a71863a..171db6a07 100644 --- a/app/controllers/workbenches_controller.rb +++ b/app/controllers/workbenches_controller.rb @@ -2,7 +2,13 @@ class WorkbenchesController < BreadcrumbController before_action :query_params, only: [:show] defaults resource_class: Workbench - respond_to :html, only: [:show] + respond_to :html, only: [:show, :index] + + def index + # Only display Wb with selected name, according to #4108 + @workbench = current_organisation.workbenches.find_by(name: "Gestion de l'offre") + @calendars = Calendar.where('organisation_id = ? OR shared = ?', current_organisation.id, true) + end def show scope = resource.all_referentials |
