[Fix #2880] Do not show our phone number to instructeurs
This commit is contained in:
parent
e0ea605460
commit
0ae8c1d719
2 changed files with 3 additions and 8 deletions
|
@ -25,13 +25,8 @@
|
||||||
.tab-link.contact-link
|
.tab-link.contact-link
|
||||||
Aide
|
Aide
|
||||||
.contact-details
|
.contact-details
|
||||||
Vous avez besoin d’aide ? Contactez-nous :
|
Vous avez besoin d’aide ? Contactez-nous
|
||||||
%br
|
= contact_link("par email")
|
||||||
– par téléphone :
|
|
||||||
= link_to CONTACT_PHONE, "tel:#{CONTACT_PHONE}"
|
|
||||||
%br
|
|
||||||
– par email :
|
|
||||||
= contact_link CONTACT_EMAIL
|
|
||||||
|
|
||||||
- if nav_bar_profile == :user
|
- if nav_bar_profile == :user
|
||||||
%ul.header-tabs
|
%ul.header-tabs
|
||||||
|
|
|
@ -27,7 +27,7 @@ describe 'layouts/_new_header.html.haml', type: :view do
|
||||||
|
|
||||||
it "displays the contact infos" do
|
it "displays the contact infos" do
|
||||||
expect(rendered).to have_text("Contact")
|
expect(rendered).to have_text("Contact")
|
||||||
expect(rendered).to have_link(CONTACT_EMAIL, href: contact_url)
|
expect(rendered).to have_link("par email", href: contact_url)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue