Merge branch 'dev'
This commit is contained in:
commit
80fda3f414
24 changed files with 31 additions and 100 deletions
|
@ -109,7 +109,6 @@ Le projet utilise plusieurs linters pour vérifier la lisibilité et la qualité
|
|||
## Régénérer les binstubs
|
||||
|
||||
bundle binstub railties --force
|
||||
bundle binstub unicorn --force
|
||||
bin/rake rails:update:bin
|
||||
|
||||
## Tâches Super Admin
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
class AccessibiliteController < ApplicationController
|
||||
layout "new_application"
|
||||
|
||||
def index
|
||||
end
|
||||
end
|
|
@ -18,7 +18,7 @@ class DemandesController < ApplicationController
|
|||
demande_params[:deadline]
|
||||
)
|
||||
flash.notice = 'Votre demande a bien été enregistrée, nous vous contacterons rapidement.'
|
||||
redirect_to administration_path
|
||||
redirect_to administration_path(formulaire_demande_compte_admin_submitted: true)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -13,7 +13,7 @@ class SupportController < ApplicationController
|
|||
elsif create_conversation
|
||||
flash.notice = "Votre message a été envoyé."
|
||||
|
||||
redirect_to root_path
|
||||
redirect_to root_path(formulaire_contact_general_submitted: true)
|
||||
else
|
||||
setup_context
|
||||
flash.now.alert = "Une erreur est survenue. Vous pouvez nous contactez à #{helpers.mail_to(CONTACT_EMAIL)}."
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
class TourDeFranceController < ApplicationController
|
||||
layout 'new_application'
|
||||
|
||||
def index
|
||||
end
|
||||
end
|
|
@ -1,9 +1,7 @@
|
|||
class ClamavService
|
||||
def self.safe_file?(file_path)
|
||||
if Rails.env == 'development'
|
||||
if CLAMAV[:mock?]
|
||||
return CLAMAV[:response]
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
FileUtils.chmod 0666, file_path
|
||||
|
|
12
app/views/gestionnaire_mailer/user_to_gestionnaire.html.haml
Normal file
12
app/views/gestionnaire_mailer/user_to_gestionnaire.html.haml
Normal file
|
@ -0,0 +1,12 @@
|
|||
%p
|
||||
Bonjour,
|
||||
|
||||
%p
|
||||
Vous venez d'être nommé instructeur sur demarches-simplifiees.fr.
|
||||
= "Votre compte (#{@email}) vous donnera désormais aussi accès à l’espace instructeur."
|
||||
|
||||
%p
|
||||
Bonne journée,
|
||||
|
||||
%p
|
||||
L'équipe demarches-simplifiees.fr
|
|
@ -1,8 +0,0 @@
|
|||
Bienvenue sur demarches-simplifiees.fr,
|
||||
\
|
||||
Vous venez d'être nommé instructeur sur demarches-simplifiees.fr.
|
||||
Votre compte (#{@email}) vous donnera désormais aussi accès à l’espace instructeur.
|
||||
\
|
||||
Bonne journée,
|
||||
\
|
||||
L'équipe demarches-simplifiees.fr
|
|
@ -8,7 +8,7 @@
|
|||
%h2.claimant
|
||||
Demandeur :
|
||||
%span.email= @avis.claimant.email
|
||||
%span.date Demande d'avis envoyée le #{I18n.l(@avis.created_at, format: '%d/%m/%y')}
|
||||
%span.date Demande d'avis envoyée le #{l(@avis.created_at, format: '%d/%m/%y')}
|
||||
%p.introduction= @avis.introduction
|
||||
|
||||
= form_for @avis, url: gestionnaire_avis_path(@avis), html: { class: 'form' } do |f|
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
confidentiel
|
||||
%span.icon.lock{ title: "Cet avis n'est pas affiché avec les autres experts consultés" }
|
||||
%span.date{ class: highlight_if_unseen_class(avis_seen_at, avis.created_at) }
|
||||
Demande d'avis envoyée le #{I18n.l(avis.created_at, format: '%d/%m/%y à %H:%M')}
|
||||
Demande d'avis envoyée le #{l(avis.created_at, format: '%d/%m/%y à %H:%M')}
|
||||
%p= avis.introduction
|
||||
|
||||
.answer.flex.align-start
|
||||
|
@ -25,7 +25,7 @@
|
|||
= (avis.email_to_display == current_gestionnaire.email) ? 'Vous' : avis.email_to_display
|
||||
- if avis.answer.present?
|
||||
%span.date{ class: highlight_if_unseen_class(avis_seen_at, avis.updated_at) }
|
||||
Réponse donnée le #{I18n.l(avis.updated_at, format: '%d/%m/%y à %H:%M')}
|
||||
Réponse donnée le #{l(avis.updated_at, format: '%d/%m/%y à %H:%M')}
|
||||
- else
|
||||
%span.waiting En attente de réponse
|
||||
%p= avis.answer
|
||||
|
|
|
@ -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"
|
||||
–
|
||||
|
|
|
@ -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"
|
||||
|
|
29
bin/unicorn
29
bin/unicorn
|
@ -1,29 +0,0 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
#
|
||||
# This file was generated by Bundler.
|
||||
#
|
||||
# The application 'unicorn' is installed as part of a gem, and
|
||||
# this file is here to facilitate running it.
|
||||
#
|
||||
|
||||
require "pathname"
|
||||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
||||
Pathname.new(__FILE__).realpath)
|
||||
|
||||
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
||||
|
||||
if File.file?(bundle_binstub)
|
||||
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
||||
load(bundle_binstub)
|
||||
else
|
||||
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
||||
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
||||
end
|
||||
end
|
||||
|
||||
require "rubygems"
|
||||
require "bundler/setup"
|
||||
|
||||
load Gem.bin_path("unicorn", "unicorn")
|
|
@ -1,29 +0,0 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
#
|
||||
# This file was generated by Bundler.
|
||||
#
|
||||
# The application 'unicorn_rails' is installed as part of a gem, and
|
||||
# this file is here to facilitate running it.
|
||||
#
|
||||
|
||||
require "pathname"
|
||||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
||||
Pathname.new(__FILE__).realpath)
|
||||
|
||||
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
||||
|
||||
if File.file?(bundle_binstub)
|
||||
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
||||
load(bundle_binstub)
|
||||
else
|
||||
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
||||
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
||||
end
|
||||
end
|
||||
|
||||
require "rubygems"
|
||||
require "bundler/setup"
|
||||
|
||||
load Gem.bin_path("unicorn", "unicorn_rails")
|
|
@ -1,4 +0,0 @@
|
|||
CLAMAV = Hashie::Mash.new ({
|
||||
mock?: true,
|
||||
response: true
|
||||
})
|
|
@ -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"
|
||||
|
@ -149,8 +149,6 @@ Rails.application.routes.draw do
|
|||
post '/carte/zones' => 'carte#zones'
|
||||
get '/carte' => 'carte#show'
|
||||
post '/carte' => 'carte#save'
|
||||
|
||||
put '/archive' => 'dossiers#archive'
|
||||
end
|
||||
|
||||
# Redirection of legacy "/users/dossiers" route to "/dossiers"
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
}
|
||||
.new-h1{color:#333333;text-align:center;font-weight:bold;margin-bottom:60px;font-size:41px;margin-top:60px;}
|
||||
/*! CSS Used fontfaces */
|
||||
@font-face{font-family:"Muli";src:url(/fonts/muli-bold/Muli-Regular.woff) format("woff");font-weight:normal;font-style:normal;}
|
||||
@font-face{font-family:"Muli";src:url(/fonts/muli/Muli-Regular.woff) format("woff");font-weight:normal;font-style:normal;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -61,7 +61,7 @@ describe SupportController, type: :controller do
|
|||
}
|
||||
|
||||
expect(flash[:notice]).to match('Votre message a été envoyé.')
|
||||
expect(response).to redirect_to root_path
|
||||
expect(response).to redirect_to root_path(formulaire_contact_general_submitted: true)
|
||||
end
|
||||
|
||||
context "with dossier" do
|
||||
|
@ -80,7 +80,7 @@ describe SupportController, type: :controller do
|
|||
}
|
||||
|
||||
expect(flash[:notice]).to match('Votre message a été envoyé.')
|
||||
expect(response).to redirect_to root_path
|
||||
expect(response).to redirect_to root_path(formulaire_contact_general_submitted: true)
|
||||
end
|
||||
|
||||
context "en_construction" do
|
||||
|
|
Loading…
Reference in a new issue