expose voting to non-gold supervoters

This commit is contained in:
r888888888
2016-03-14 16:52:49 -07:00
parent 51e77dbb9c
commit 6d6d00b190
6 changed files with 33 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
<strong>Score</strong>
<span>
<span id="score-for-post-<%= post.id %>"><%= post.score %></span>
<% if CurrentUser.is_gold? %>
<% if CurrentUser.is_voter? %>
(vote <%= link_to("up", post_votes_path(:score => "up", :post_id => post.id), :remote => true, :method => :post) %>/<%= link_to("down", post_votes_path(:score => "down", :post_id => post.id), :remote => true, :method => :post) %>)
<% end %>
</span>