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)
end
def accessibilite
end
def suivi
end
def tour_de_france
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"

View file

@ -40,4 +40,4 @@
%li.footer-link
= link_to "FAQ", FAQ_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"
%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'
get '/tour-de-france' => 'tour_de_france#index'
get '/administration' => 'root#administration'
get 'users' => 'users#index'
@ -117,7 +116,6 @@ Rails.application.routes.draw do
get '/stats' => 'stats#index'
get '/stats/download' => 'stats#download'
resources :accessibilite, only: [:index]
resources :demandes, only: [:new, :create]
namespace :france_connect do
@ -131,7 +129,9 @@ Rails.application.routes.draw do
post ':position/carte', to: 'carte#show', as: :carte
end
get 'tour-de-france' => 'root#tour_de_france'
get "patron" => "root#patron"
get "accessibilite" => "root#accessibilite"
get "suivi" => "root#suivi"
get "contact", to: "support#index"