summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-02-09 12:10:53 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-02-13 18:04:51 +0100
commita5e271b6843a3c1b2e59a5b470dfef6d0120d38c (patch)
treed49377a507a3a3312c5cb7f41a5850d1e9bac04a
parentbe231d21650cc5698a283bf8da58dc433a395fbf (diff)
downloadgitlab-ce-a5e271b6843a3c1b2e59a5b470dfef6d0120d38c.tar.gz
Use more specific #avatar_icon_for_email.
-rw-r--r--app/views/help/ui.html.haml2
-rw-r--r--app/views/projects/network/show.json.erb2
-rw-r--r--app/views/shared/members/_member.html.haml2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/help/ui.html.haml b/app/views/help/ui.html.haml
index 445f0dffbcc..1c4d67a8d2c 100644
--- a/app/views/help/ui.html.haml
+++ b/app/views/help/ui.html.haml
@@ -68,7 +68,7 @@
.example
.cover-block
.avatar-holder
- = image_tag avatar_icon('admin@example.com', 90), class: "avatar s90", alt: ''
+ = image_tag avatar_icon_for_email('admin@example.com', 90), class: "avatar s90", alt: ''
.cover-title
John Smith
diff --git a/app/views/projects/network/show.json.erb b/app/views/projects/network/show.json.erb
index 7491b37310d..a0e82e891ff 100644
--- a/app/views/projects/network/show.json.erb
+++ b/app/views/projects/network/show.json.erb
@@ -9,7 +9,7 @@
author: {
name: c.author_name,
email: c.author_email,
- icon: image_path(avatar_icon(c.author_email, 20))
+ icon: image_path(avatar_icon_for_email(c.author_email, 20))
},
time: c.time,
space: c.spaces.first,
diff --git a/app/views/shared/members/_member.html.haml b/app/views/shared/members/_member.html.haml
index a6a1ceca640..ba57d922c6d 100644
--- a/app/views/shared/members/_member.html.haml
+++ b/app/views/shared/members/_member.html.haml
@@ -36,7 +36,7 @@
Expires in #{distance_of_time_in_words_to_now(member.expires_at)}
- else
- = image_tag avatar_icon(member.invite_email, 40), class: "avatar s40", alt: ''
+ = image_tag avatar_icon_for_email(member.invite_email, 40), class: "avatar s40", alt: ''
.user-info
.member= member.invite_email
.cgray