Skip to content
Snippets Groups Projects

Hide user avatar for blocked and unconfirmed users

Merged Drew Blessing requested to merge dblessing_avatar_for_blocked_users into master
1 unresolved thread
Files
2
# frozen_string_literal: true
module AvatarsHelper
DEFAULT_AVATAR_PATH = 'no_avatar.png'
def project_icon(project, options = {})
source_icon(project, options)
end
@@ -47,7 +49,7 @@ def gravatar_icon(user_email = '', size = nil, scale = 2)
end
def default_avatar
ActionController::Base.helpers.image_path('no_avatar.png')
ActionController::Base.helpers.image_path(DEFAULT_AVATAR_PATH)
end
def author_avatar(commit_or_event, options = {})
Loading