Fix logo image_url
This commit is contained in:
parent
e10c218d3a
commit
a08ded5322
13 changed files with 12 additions and 12 deletions
BIN
app/assets/images/logos/logo-opensimplif.jpg
Normal file
BIN
app/assets/images/logos/logo-opensimplif.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
|
@ -10,7 +10,7 @@ class ProcedureDecorator < Draper::Decorator
|
|||
end
|
||||
|
||||
def logo_img
|
||||
return LOGO_NAME if logo.blank?
|
||||
return image_url(LOGO_NAME) if logo.blank?
|
||||
File.join(STORAGE_URL, File.basename(logo.path))
|
||||
end
|
||||
def geographic_information
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#form_login
|
||||
%br
|
||||
= image_tag(LOGO_NAME)
|
||||
= image_tag(image_url(LOGO_NAME))
|
||||
%br
|
||||
%h2#login_admin
|
||||
=t('dynamics.admin.connexion_title')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
= devise_error_messages!
|
||||
|
||||
#form_login
|
||||
= image_tag(LOGO_NAME)
|
||||
= image_tag(image_url(LOGO_NAME))
|
||||
%br
|
||||
%h2#gestionnaire_login Changement de mot de passe
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
%br
|
||||
#form_login
|
||||
= image_tag(LOGO_NAME)
|
||||
= image_tag(image_url(LOGO_NAME))
|
||||
%br
|
||||
%h2#gestionnaire_login Mot de passe oublié
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#form_login
|
||||
%br
|
||||
= image_tag(LOGO_NAME)
|
||||
= image_tag(image_url(LOGO_NAME))
|
||||
%br
|
||||
%h2#gestionnaire_login Accompagnateur
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Env Test
|
||||
= image_tag('marianne_small.png', class: 'logo')
|
||||
%a{href: '/'}
|
||||
= image_tag(LOGO_NAME, class: 'logo')
|
||||
= image_tag(image_url(LOGO_NAME), class: 'logo')
|
||||
|
||||
- if gestionnaire_signed_in? && user_signed_in?
|
||||
%a{href: (current_gestionnaire.procedure_filter.blank? ? backoffice_dossiers_path : backoffice_dossiers_procedure_path(current_gestionnaire.procedure_filter)), class: 'btn btn-md'}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
= devise_error_messages!
|
||||
|
||||
#form_login
|
||||
= image_tag(LOGO_NAME)
|
||||
= image_tag(image_url(LOGO_NAME))
|
||||
%br
|
||||
%h2#gestionnaire_login Changement de mot de passe
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
%br
|
||||
#form_login
|
||||
= image_tag(LOGO_NAME)
|
||||
= image_tag(image_url(LOGO_NAME))
|
||||
%br
|
||||
%h2#gestionnaire_login Mot de passe oublié
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#form_login
|
||||
%br
|
||||
= image_tag(LOGO_NAME)
|
||||
= image_tag(image_url(LOGO_NAME))
|
||||
%br
|
||||
%h2#gestionnaire_login Inscription
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
|
||||
- else
|
||||
= image_tag(LOGO_NAME, {id: 'logo_tps'})
|
||||
= image_tag(image_url(LOGO_NAME), {id: 'logo_tps'})
|
||||
%br
|
||||
|
||||
%h2#login_user
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
%p.lead{id: 'pro_section'}
|
||||
|
||||
= image_tag(LOGO_NAME)
|
||||
= image_tag(image_url(LOGO_NAME))
|
||||
%br
|
||||
%h2#titre_procedure.text-info
|
||||
= @procedure.libelle
|
||||
|
|
|
@ -16,7 +16,7 @@ describe ProcedureDecorator do
|
|||
|
||||
describe 'logo_img' do
|
||||
subject { super().logo_img }
|
||||
it { is_expected.to eq(LOGO_NAME) }
|
||||
it { is_expected.to eq(image_url(LOGO_NAME)) }
|
||||
end
|
||||
|
||||
describe 'geographic_information' do
|
||||
|
|
Loading…
Reference in a new issue