allow more forum posts to be voted on (fixes #3677)

This commit is contained in:
Albert Yi
2018-04-27 16:18:18 -07:00
parent 06e7dbb8e4
commit d4b1782431
3 changed files with 19 additions and 1 deletions

View File

@@ -44,7 +44,7 @@
<% else %>
<li><%= link_to "Permalink", forum_post_path(forum_post) %></li>
<% end %>
<% if forum_post.is_original_post?(original_forum_post_id) %>
<% if forum_post.votable? %>
<ul class="votes" id="forum-post-votes-for-<%= forum_post.id %>">
<%= render "forum_post_votes/list", votes: forum_post.votes, forum_post: forum_post %>
</ul>