fixes #25: Voting on posts does not have any effect (also added to post/show)
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
</span>
|
||||
<span class="info">
|
||||
<strong>Score</strong>
|
||||
<span id="score-for-post-<%= post.id %>">
|
||||
<span><%= post.score %></span>
|
||||
<span>
|
||||
<span id="score-for-post-<%= post.id %>"><%= post.score %></span>
|
||||
<% if CurrentUser.user.is_privileged? %>
|
||||
(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 %>
|
||||
|
||||
Reference in New Issue
Block a user