diff --git a/app/assets/javascripts/votes.js.coffee b/app/assets/javascripts/votes.js.coffee index da3d55664..4ccfb2131 100644 --- a/app/assets/javascripts/votes.js.coffee +++ b/app/assets/javascripts/votes.js.coffee @@ -3,9 +3,11 @@ App.Votes = hoverize: (votes) -> $(votes).hover -> $("div.anonymous-votes", votes).show(); + $("div.organizations-votes", votes).show(); $("div.not-logged", votes).show(); , -> $("div.anonymous-votes", votes).hide(); + $("div.organizations-votes", votes).hide(); $("div.not-logged", votes).hide(); initialize: -> diff --git a/app/assets/stylesheets/debates.scss b/app/assets/stylesheets/debates.scss index a480f4870..2fe4a8383 100644 --- a/app/assets/stylesheets/debates.scss +++ b/app/assets/stylesheets/debates.scss @@ -135,7 +135,7 @@ } } - .anonymous-votes { + .anonymous-votes, .organizations-votes { background: $warning-bg; color: $warning-color; height: 100%; @@ -380,7 +380,7 @@ padding-top: rem-calc(36); } - .anonymous-votes { + .anonymous-votes, .organizations-votes { padding-top: rem-calc(24); } } diff --git a/app/views/debates/_votes.html.erb b/app/views/debates/_votes.html.erb index 89d9313a1..e8aaf7d26 100644 --- a/app/views/debates/_votes.html.erb +++ b/app/views/debates/_votes.html.erb @@ -21,7 +21,13 @@ <%= t("debates.debate.votes", count: debate.total_votes) %> - <% if user_signed_in? && current_user.unverified? && !debate.votable_by?(current_user)%> + <% if user_signed_in? && current_user.organization? %> + + <% elsif user_signed_in? && current_user.unverified? && !debate.votable_by?(current_user)%>