[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
|
||||
Aide
|
||||
.contact-details
|
||||
Vous avez besoin d’aide ? Contactez-nous :
|
||||
%br
|
||||
– par téléphone :
|
||||
= link_to CONTACT_PHONE, "tel:#{CONTACT_PHONE}"
|
||||
%br
|
||||
– par email :
|
||||
= contact_link CONTACT_EMAIL
|
||||
Vous avez besoin d’aide ? Contactez-nous
|
||||
= contact_link("par email")
|
||||
|
||||
- if nav_bar_profile == :user
|
||||
%ul.header-tabs
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue