adds interface to disallow organizations votes

on debates
This commit is contained in:
Juanjo Bazán
2015-09-02 12:16:55 +02:00
parent 361ccb8624
commit 8915ce7ffd
5 changed files with 13 additions and 3 deletions

View File

@@ -21,7 +21,13 @@
<%= t("debates.debate.votes", count: debate.total_votes) %>
</span>
<% if user_signed_in? && current_user.unverified? && !debate.votable_by?(current_user)%>
<% if user_signed_in? && current_user.organization? %>
<div class="organizations-votes" style='display:none'>
<p>
<%= t("votes.organizations") %>
</p>
</div>
<% elsif user_signed_in? && current_user.unverified? && !debate.votable_by?(current_user)%>
<div class="anonymous-votes" style='display:none'>
<p>
<%= t("votes.anonymous",