diff options
author | Jack Davison <jack.davison@student.manchester.ac.uk> | 2016-07-11 21:53:07 +0300 |
---|---|---|
committer | Jack Davison <jack.davison@student.manchester.ac.uk> | 2016-08-17 23:25:39 +0300 |
commit | 6c1ed00afc98562e2c605aa3df313d26b3486da3 (patch) | |
tree | 5684cf9f2dfaa25179b56b2f924b416bc9ae9d5a /app/helpers/issues_helper.rb | |
parent | 1fc17a8a43a87af89358953364872d565d38b8e8 (diff) |
Award tooltips refer to current user as "You"
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index e5be8d2404a..8b212b0327a 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -115,11 +115,11 @@ module IssuesHelper def award_user_list(awards, current_user) names = awards.map do |award| - award.user == current_user ? 'me' : award.user.name + award.user == current_user ? 'You' : award.user.name end # Take first 9 OR current user + first 9 - current_user_name = names.delete('me') + current_user_name = names.delete('You') names = names.first(9).insert(0, current_user_name).compact names << "#{awards.size - names.size} more." if awards.size > names.size |