refactor(links): use FAQ URL locale everywhere
This commit is contained in:
parent
ffeb2083f0
commit
faa5dda761
6 changed files with 10 additions and 10 deletions
|
@ -51,7 +51,7 @@
|
||||||
= render partial: 'shared/help/help_dropdown_instructeur'
|
= render partial: 'shared/help/help_dropdown_instructeur'
|
||||||
- else
|
- else
|
||||||
// NB: on mobile in order to have links correctly aligned, we need a left icon
|
// NB: on mobile in order to have links correctly aligned, we need a left icon
|
||||||
= link_to t('help'), FAQ_URL, class: 'fr-btn fr-icon-questionnaire-line fr-btn--icon-left', title: new_tab_suffix(t('help')), **external_link_attributes
|
= link_to t('help'), t("links.footer.faq.url"), class: 'fr-btn fr-icon-questionnaire-line fr-btn--icon-left', title: new_tab_suffix(t('help')), **external_link_attributes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -120,4 +120,4 @@
|
||||||
%h1.cta-panel-title Une question, un problème ?
|
%h1.cta-panel-title Une question, un problème ?
|
||||||
%p.cta-panel-explanation Consultez notre FAQ
|
%p.cta-panel-explanation Consultez notre FAQ
|
||||||
%div
|
%div
|
||||||
= link_to "Voir la FAQ", FAQ_URL, class: "fr-btn fr-btn--lg", **external_link_attributes
|
= link_to "Voir la FAQ", t("links.footer.faq.url"), class: "fr-btn fr-btn--lg", **external_link_attributes
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
%h2.cta-panel-title= t(".question")
|
%h2.cta-panel-title= t(".question")
|
||||||
%p.cta-panel-explanation= t(".answer_in_faq")
|
%p.cta-panel-explanation= t(".answer_in_faq")
|
||||||
%div
|
%div
|
||||||
= link_to t(".online_help"), FAQ_URL, class: "fr-btn fr-btn--lg", title: new_tab_suffix(t(".online_help")), **external_link_attributes
|
= link_to t(".online_help"), t("links.footer.faq.url"), class: "fr-btn fr-btn--lg", title: new_tab_suffix(t(".online_help")), **external_link_attributes
|
||||||
-# We temporarily disable the link to the contact page on the homepage
|
-# We temporarily disable the link to the contact page on the homepage
|
||||||
-# %p.cta-panel-explanation Notre équipe est disponible pour vous renseigner et vous aider
|
-# %p.cta-panel-explanation Notre équipe est disponible pour vous renseigner et vous aider
|
||||||
-# %div
|
-# %div
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
%li
|
%li
|
||||||
= link_to FAQ_URL, title: new_tab_suffix(t('help_dropdown.general_title')), **external_link_attributes do
|
= link_to t("links.footer.faq.url"), title: new_tab_suffix(t('help_dropdown.general_title')), **external_link_attributes do
|
||||||
%span.icon.help
|
%span.icon.help
|
||||||
.dropdown-description
|
.dropdown-description
|
||||||
%span.help-dropdown-title
|
%span.help-dropdown-title
|
||||||
|
|
|
@ -19,7 +19,7 @@ describe 'Getting help:' do
|
||||||
within('.help-dropdown') do
|
within('.help-dropdown') do
|
||||||
expect(page).to have_content(procedure.service.email)
|
expect(page).to have_content(procedure.service.email)
|
||||||
expect(page).to have_content(procedure.service.telephone)
|
expect(page).to have_content(procedure.service.telephone)
|
||||||
expect(page).to have_link(nil, href: FAQ_URL)
|
expect(page).to have_link(nil, href: I18n.t("links.footer.faq.url"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -52,7 +52,7 @@ describe 'Getting help:' do
|
||||||
within('.help-dropdown') do
|
within('.help-dropdown') do
|
||||||
expect(page).to have_content(dossier.procedure.service.email)
|
expect(page).to have_content(dossier.procedure.service.email)
|
||||||
expect(page).to have_content(dossier.procedure.service.telephone)
|
expect(page).to have_content(dossier.procedure.service.telephone)
|
||||||
expect(page).to have_link(nil, href: FAQ_URL)
|
expect(page).to have_link(nil, href: I18n.t("links.footer.faq.url"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -69,7 +69,7 @@ describe 'Getting help:' do
|
||||||
|
|
||||||
within('.help-dropdown') do
|
within('.help-dropdown') do
|
||||||
expect(page).to have_link(nil, href: messagerie_dossier_path(dossier))
|
expect(page).to have_link(nil, href: messagerie_dossier_path(dossier))
|
||||||
expect(page).to have_link(nil, href: FAQ_URL)
|
expect(page).to have_link(nil, href: I18n.t("links.footer.faq.url"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -91,7 +91,7 @@ describe 'Getting help:' do
|
||||||
end
|
end
|
||||||
|
|
||||||
def have_help_button
|
def have_help_button
|
||||||
have_link('Aide', href: FAQ_URL)
|
have_link('Aide', href: I18n.t("links.footer.faq.url"))
|
||||||
end
|
end
|
||||||
|
|
||||||
def have_help_menu
|
def have_help_menu
|
||||||
|
|
|
@ -23,7 +23,7 @@ describe 'layouts/_header.html.haml', type: :view do
|
||||||
it { is_expected.to_not have_css(".account-btn") }
|
it { is_expected.to_not have_css(".account-btn") }
|
||||||
|
|
||||||
it 'displays the Help link' do
|
it 'displays the Help link' do
|
||||||
expect(subject).to have_link('Aide', href: FAQ_URL)
|
expect(subject).to have_link('Aide', href: I18n.t("links.footer.faq.url"))
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when on a procedure page' do
|
context 'when on a procedure page' do
|
||||||
|
@ -48,7 +48,7 @@ describe 'layouts/_header.html.haml', type: :view do
|
||||||
it { is_expected.to have_selector(:button, user.email, class: "account-btn") }
|
it { is_expected.to have_selector(:button, user.email, class: "account-btn") }
|
||||||
|
|
||||||
it 'displays the Help button' do
|
it 'displays the Help button' do
|
||||||
expect(subject).to have_link("Aide", href: FAQ_URL)
|
expect(subject).to have_link("Aide", href: I18n.t("links.footer.faq.url"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue