diff options
author | barthc <mackintosh02@gmail.com> | 2016-09-08 11:08:09 +0100 |
---|---|---|
committer | barthc <mackintosh02@gmail.com> | 2017-04-14 09:33:28 +0100 |
commit | 04e2dde538b7a91de0ffdd09d355e9c990b4c7b1 (patch) | |
tree | 8139527c01760cfec392d5250583f5d9b4459f74 /app/helpers/issues_helper.rb | |
parent | 0497d3eadb67f347a6376c77cbd39511e5136bfb (diff) | |
download | gitlab-ce-04e2dde538b7a91de0ffdd09d355e9c990b4c7b1.tar.gz |
frontend prevent authored votes
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 6978b0c89fd..82288f1da35 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -110,6 +110,14 @@ module IssuesHelper end end + def award_user_authored_class(award) + if award == 'thumbsdown' || award == 'thumbsup' + 'user-authored js-user-authored' + else + '' + end + end + def awards_sort(awards) awards.sort_by do |award, notes| if award == "thumbsup" |