diff options
| author | Xinhui | 2016-10-12 14:36:21 +0200 |
|---|---|---|
| committer | Xinhui | 2016-10-12 14:36:21 +0200 |
| commit | d66abf8f9b58ddeeabc4e53e8ed1fd382b9f1907 (patch) | |
| tree | a23af823f6ea59d3d9f7fe17ad089af20551ae51 | |
| parent | b1d4597500f07d87aa32518c4f0baef0bdb8363e (diff) | |
| download | chouette-core-d66abf8f9b58ddeeabc4e53e8ed1fd382b9f1907.tar.bz2 | |
Remove cancel sync link
| -rw-r--r-- | app/controllers/stop_area_referentials_controller.rb | 5 | ||||
| -rw-r--r-- | app/views/stop_area_referentials/show.html.slim | 2 | ||||
| -rw-r--r-- | config/routes.rb | 1 |
3 files changed, 0 insertions, 8 deletions
diff --git a/app/controllers/stop_area_referentials_controller.rb b/app/controllers/stop_area_referentials_controller.rb index f8c4d0d06..5c87be43d 100644 --- a/app/controllers/stop_area_referentials_controller.rb +++ b/app/controllers/stop_area_referentials_controller.rb @@ -11,11 +11,6 @@ class StopAreaReferentialsController < BreadcrumbController redirect_to resource end - def cancel_sync - resource.last_sync.destroy - redirect_to resource - end - protected def begin_of_chain current_organisation diff --git a/app/views/stop_area_referentials/show.html.slim b/app/views/stop_area_referentials/show.html.slim index 584f53410..9cceed5e5 100644 --- a/app/views/stop_area_referentials/show.html.slim +++ b/app/views/stop_area_referentials/show.html.slim @@ -28,5 +28,3 @@ - content_for :sidebar do ul.actions li = link_to t('stop_area_referentials.actions.sync'), sync_stop_area_referential_path(@stop_area_referential), class: 'sync', method: :post - - if @stop_area_referential.last_sync - li = link_to t('stop_area_referentials.actions.cancel_sync'), cancel_sync_stop_area_referential_path(@stop_area_referential), class: 'cancel_sync', method: :post diff --git a/config/routes.rb b/config/routes.rb index d60331a4f..196e73997 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -55,7 +55,6 @@ ChouetteIhm::Application.routes.draw do resources :stop_area_referentials, :only => [:show] do post :sync, on: :member - post :cancel_sync, on: :member resources :stop_areas end |
