Merge pull request #3036 from betagouv/simplify

Simplify
This commit is contained in:
gregoirenovel 2018-11-22 02:05:51 +01:00 committed by GitHub
commit 75777e7af8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 16 deletions

View file

@ -1,6 +0,0 @@
class AccessibiliteController < ApplicationController
layout "new_application"
def index
end
end

View file

@ -56,6 +56,12 @@ class RootController < ApplicationController
@dossier = Dossier.new(champs: all_champs) @dossier = Dossier.new(champs: all_champs)
end end
def accessibilite
end
def suivi def suivi
end end
def tour_de_france
end
end end

View file

@ -1,6 +0,0 @@
class TourDeFranceController < ApplicationController
layout 'new_application'
def index
end
end

View file

@ -1,4 +1,4 @@
= link_to "Accessibilité", accessibilite_index_path, :class => "footer-link" = link_to "Accessibilité", accessibilite_path, :class => "footer-link"
= link_to "CGU", CGU_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" = link_to "CGU", CGU_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"

View file

@ -40,4 +40,4 @@
%li.footer-link %li.footer-link
= link_to "FAQ", FAQ_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" = link_to "FAQ", FAQ_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"
%li.footer-link %li.footer-link
= link_to "Accessibilité", accessibilite_index_path, :class => "footer-link" = link_to "Accessibilité", accessibilite_path, :class => "footer-link"

View file

@ -109,7 +109,6 @@ Rails.application.routes.draw do
# #
root 'root#index' root 'root#index'
get '/tour-de-france' => 'tour_de_france#index'
get '/administration' => 'root#administration' get '/administration' => 'root#administration'
get 'users' => 'users#index' get 'users' => 'users#index'
@ -117,7 +116,6 @@ Rails.application.routes.draw do
get '/stats' => 'stats#index' get '/stats' => 'stats#index'
get '/stats/download' => 'stats#download' get '/stats/download' => 'stats#download'
resources :accessibilite, only: [:index]
resources :demandes, only: [:new, :create] resources :demandes, only: [:new, :create]
namespace :france_connect do namespace :france_connect do
@ -131,7 +129,9 @@ Rails.application.routes.draw do
post ':position/carte', to: 'carte#show', as: :carte post ':position/carte', to: 'carte#show', as: :carte
end end
get 'tour-de-france' => 'root#tour_de_france'
get "patron" => "root#patron" get "patron" => "root#patron"
get "accessibilite" => "root#accessibilite"
get "suivi" => "root#suivi" get "suivi" => "root#suivi"
get "contact", to: "support#index" get "contact", to: "support#index"