fixes #25: Voting on posts does not have any effect (also added to post/show)
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
(<%= post.image_width %>x<%= post.image_height %>)
|
||||
<% end %>
|
||||
</li>
|
||||
<li>Score: <span id="score-for-post-<%= post.id %>"><%= post.score %></span> (vote <%= link_to "up", post_votes_path(:post_id => post.id, :score => "up"), :remote => true, :method => :post %>/<%= link_to "down", post_votes_path(:post_id => post.id, :score => "down"), :remote => true, :method => :post %>)</li>
|
||||
<li>
|
||||
Status:
|
||||
<% if post.is_pending? %>
|
||||
|
||||
Reference in New Issue
Block a user