modqueue: display pools for each post (fix #3125).
This commit is contained in:
@@ -34,6 +34,9 @@
|
||||
<strong>Hidden</strong>: <%= render "post_disapprovals/compact_counts", :disapprovals => post.disapprovals, :post => post %>
|
||||
</li>
|
||||
<li><strong>Source</strong>: <%= post.source %></li>
|
||||
<% if post.has_active_pools? %>
|
||||
<li><strong>Pools</strong>: <%= render "pools/inline_list", pools: post.pools %></li>
|
||||
<% end %>
|
||||
<li><strong>Tags</strong>: <%= post.presenter.inline_tag_list_html(self) %></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
5
app/views/pools/_inline_list.html.erb
Normal file
5
app/views/pools/_inline_list.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<ul class="inline-pool-list">
|
||||
<% pools.each do |pool| %>
|
||||
<li><%= link_to pool.pretty_name, pool, :class => "pool-category-#{pool.category}" %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user