[Fix #2880] Do not show our phone number to instructeurs

This commit is contained in:
gregoirenovel 2018-10-18 18:24:45 +02:00
parent e0ea605460
commit 0ae8c1d719
2 changed files with 3 additions and 8 deletions

View file

@ -25,13 +25,8 @@
.tab-link.contact-link
Aide
.contact-details
Vous avez besoin daide ? Contactez-nous :
%br
par téléphone :
= link_to CONTACT_PHONE, "tel:#{CONTACT_PHONE}"
%br
par email :
= contact_link CONTACT_EMAIL
Vous avez besoin daide ? Contactez-nous
= contact_link("par email")
- if nav_bar_profile == :user
%ul.header-tabs

View file

@ -27,7 +27,7 @@ describe 'layouts/_new_header.html.haml', type: :view do
it "displays the contact infos" do
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