diff --git a/app/views/platforms/repositories/show.html.haml b/app/views/platforms/repositories/show.html.haml index 86f91d236..ffc4f9bc4 100644 --- a/app/views/platforms/repositories/show.html.haml +++ b/app/views/platforms/repositories/show.html.haml @@ -12,6 +12,6 @@ - if can? :add_project, @repository = link_to t("layout.projects.add"), add_project_platform_repository_path(@platform, @repository), :class => 'button' - if can? :erase, @repository - = link_to t("layout.repositories.erase"), erase_platform_repository_path(@platform, @repository), :class => 'button', :confirm => t('layout.repositories.erase_confirm') + = link_to t("layout.repositories.erase"), erase_platform_repository_path(@platform, @repository), :class => 'button', :confirm => t('layout.repositories.erase_confirm'), :method => :post = render 'proj_list' diff --git a/config/routes.rb b/config/routes.rb index e50c8100f..0beeb7144 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -58,7 +58,7 @@ Rosa::Application.routes.draw do resources :repositories do member do get :add_project - get :erase + post :erase delete :remove_project get :projects_list end