Merge pull request #2659 from betagouv/fix-1511

Remplace l'ancien logo DS par une Marianne
This commit is contained in:
gregoirenovel 2018-09-24 12:24:53 +02:00 committed by GitHub
commit a8bcc19044
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 4 additions and 27 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

View file

@ -13,7 +13,7 @@ class ProcedureDecorator < Draper::Decorator
def logo_img def logo_img
if logo.blank? if logo.blank?
h.image_url(LOGO_NAME) h.image_url("marianne.svg")
else else
if Flipflop.remote_storage? if Flipflop.remote_storage?
(RemoteDownloader.new logo.filename).url (RemoteDownloader.new logo.filename).url

View file

@ -1,7 +1,4 @@
#form-login #form-login
%br
= image_tag(image_url(LOGO_NAME))
%br
%h2#login_admin %h2#login_admin
= t('dynamics.admin.connexion_title') = t('dynamics.admin.connexion_title')

View file

@ -1,8 +1,6 @@
= devise_error_messages! = devise_error_messages!
#form-login #form-login
= image_tag(image_url(LOGO_NAME))
%br
%h2#gestionnaire_login Changement de mot de passe %h2#gestionnaire_login Changement de mot de passe
%br %br

View file

@ -2,8 +2,6 @@
%br %br
#form-login #form-login
= image_tag(image_url(LOGO_NAME))
%br
%h2#gestionnaire_login Mot de passe oublié %h2#gestionnaire_login Mot de passe oublié
%br %br

View file

@ -1,7 +1,4 @@
#form-login #form-login
%br
= image_tag(image_url(LOGO_NAME))
%br
%h2#gestionnaire_login Instructeur %h2#gestionnaire_login Instructeur
%br %br

View file

@ -2,7 +2,7 @@
%a#title-navbar{ href: root_path } %a#title-navbar{ href: root_path }
.row#home .row#home
.col-lg-6.no-padding .col-lg-6.no-padding
= image_tag('marianne_small.png', class: 'logo') = image_tag('marianne.svg', class: 'logo')
.col-lg-6.no-padding#tps-title .col-lg-6.no-padding#tps-title
demarches-simplifiees.fr demarches-simplifiees.fr

View file

@ -1,9 +1,6 @@
= devise_error_messages! = devise_error_messages!
#form-login #form-login
.flag
= image_tag(image_url(LOGO_NAME))
%br
%h2#gestionnaire_login Changement de mot de passe %h2#gestionnaire_login Changement de mot de passe
%br %br

View file

@ -2,9 +2,6 @@
%br %br
#form-login #form-login
.flag
= image_tag(image_url(LOGO_NAME))
%br
%h2#gestionnaire_login Mot de passe oublié %h2#gestionnaire_login Mot de passe oublié
%br %br

View file

@ -14,7 +14,3 @@
= @dossier.procedure.libelle = @dossier.procedure.libelle
%p.procedure-description %p.procedure-description
= h string_to_html(@dossier.procedure.description) = h string_to_html(@dossier.procedure.description)
- else
#logo_procedure.flag
= image_tag(image_url(LOGO_NAME), { id: 'logo_tps' })

View file

@ -1,7 +1,4 @@
%p.lead#pro_section %p.lead#pro_section
.flag
= image_tag(image_url(LOGO_NAME))
%br
%h2#titre-procedure.text-info %h2#titre-procedure.text-info
= @procedure.libelle = @procedure.libelle

View file

@ -1 +0,0 @@
LOGO_NAME = 'logos/logo-ds.png'

View file

@ -24,7 +24,7 @@ describe ProcedureDecorator do
describe 'logo_img' do describe 'logo_img' do
subject { super().logo_img } subject { super().logo_img }
it { is_expected.to match(/http.*#{ActionController::Base.helpers.image_url(LOGO_NAME)}/) } it { is_expected.to match(/http.*#{ActionController::Base.helpers.image_url("marianne.svg")}/) }
end end
describe 'geographic_information' do describe 'geographic_information' do