checks already answered polls only for users logged
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<% poll_group.each do |poll| %>
|
<% poll_group.each do |poll| %>
|
||||||
<div class="poll with-image">
|
<div class="poll with-image">
|
||||||
<% if !poll.votable_by?(current_user) %>
|
<% if user_signed_in? && !poll.votable_by?(current_user) %>
|
||||||
<div class="icon-poll-answer already-answer" title="<%= t("polls.index.already_answer") %>">
|
<div class="icon-poll-answer already-answer" title="<%= t("polls.index.already_answer") %>">
|
||||||
<span class="show-for-sr"><%= t("polls.index.already_answer") %></span>
|
<span class="show-for-sr"><%= t("polls.index.already_answer") %></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user