diff options
| author | Teddy Wing | 2017-07-11 19:21:10 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-07-12 11:11:14 +0200 |
| commit | 9fed0c184323de9e5e0bcfe83465cb4e2b153590 (patch) | |
| tree | 6aba8417d8671f749b2945da018754b7dd60e298 /app/controllers | |
| parent | 0970ba4be6b152e1f3aea0f10e8471e68dc60c4b (diff) | |
| download | chouette-core-9fed0c184323de9e5e0bcfe83465cb4e2b153590.tar.bz2 | |
ReferentialStopAreas#show: Render header buttons from decorator
Since we already have the decorator available, get the links from there
for better code reuse.
Refs #3479
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/referential_stop_areas_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/referential_stop_areas_controller.rb b/app/controllers/referential_stop_areas_controller.rb index 4d33ebb2e..7519418e7 100644 --- a/app/controllers/referential_stop_areas_controller.rb +++ b/app/controllers/referential_stop_areas_controller.rb @@ -72,13 +72,16 @@ class ReferentialStopAreasController < ChouetteController def show map.editable = false @access_points = @stop_area.access_points + show! do |format| unless stop_area.position or params[:default] or params[:routing] format.kml { render :nothing => true, :status => :not_found } - end + + @stop_area = @stop_area.decorate + build_breadcrumb :show end end |
