diff --git a/app/views/profiles/show.html.haml b/app/views/profiles/show.html.haml
index 9a4c13af975..e03a43cbf1f 100644
--- a/app/views/profiles/show.html.haml
+++ b/app/views/profiles/show.html.haml
@@ -68,12 +68,14 @@
%p.light
- if @user.avatar?
You can change your avatar here
- %br
- or remove the current avatar to revert to #{link_to "gravatar.com", "http://gravatar.com"}
+ - if Gitlab.config.gravatar.enabled
+ %br
+ or remove the current avatar to revert to #{link_to "gravatar.com", "http://gravatar.com"}
- else
You can upload an avatar here
- %br
- or change it at #{link_to "gravatar.com", "http://gravatar.com"}
+ - if Gitlab.config.gravatar.enabled
+ %br
+ or change it at #{link_to "gravatar.com", "http://gravatar.com"}
%hr
%a.choose-btn.btn.btn-small.js-choose-user-avatar-button
%i.icon-paper-clip