Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-11-30 21:09:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-11-30 21:09:46 +0300
commitace0df53d3ed38344b470727d430484d24eeb798 (patch)
treeec1fc71d793bf3d588df9fe97c4649c87e697e73 /app/helpers/users_helper.rb
parent56eafa995d0bbda39bc24cd07537286bf36a4dd9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/users_helper.rb')
-rw-r--r--app/helpers/users_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
index 08c88c39670..1786e632117 100644
--- a/app/helpers/users_helper.rb
+++ b/app/helpers/users_helper.rb
@@ -60,6 +60,12 @@ module UsersHelper
"access:#{max_project_member_access(project)}"
end
+ def show_status_emoji?(status)
+ return false unless status
+
+ status.message.present? || status.emoji != UserStatus::DEFAULT_EMOJI
+ end
+
def user_status(user)
return unless user