diff --git a/app/assets/stylesheets/specific/pools.scss b/app/assets/stylesheets/specific/pools.scss index ed1878842..5be39a81e 100644 --- a/app/assets/stylesheets/specific/pools.scss +++ b/app/assets/stylesheets/specific/pools.scss @@ -81,3 +81,11 @@ div#c-pool-orders, div#c-favorite-group-orders { } } } + +ul.inline-pool-list { + display: inline; + + li { + display: inline; + } +} diff --git a/app/models/post.rb b/app/models/post.rb index 2e49b9384..b0cfb704c 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -1031,6 +1031,10 @@ class Post < ActiveRecord::Base end end + def has_active_pools? + pools.length > 0 + end + def belongs_to_pool?(pool) pool_string =~ /(?:\A| )pool:#{pool.id}(?:\Z| )/ end diff --git a/app/views/moderator/post/queues/_post.html.erb b/app/views/moderator/post/queues/_post.html.erb index 9e564458a..91826bcc8 100644 --- a/app/views/moderator/post/queues/_post.html.erb +++ b/app/views/moderator/post/queues/_post.html.erb @@ -34,6 +34,9 @@ Hidden: <%= render "post_disapprovals/compact_counts", :disapprovals => post.disapprovals, :post => post %>
  • Source: <%= post.source %>
  • + <% if post.has_active_pools? %> +
  • Pools: <%= render "pools/inline_list", pools: post.pools %>
  • + <% end %>
  • Tags: <%= post.presenter.inline_tag_list_html(self) %>
  • diff --git a/app/views/pools/_inline_list.html.erb b/app/views/pools/_inline_list.html.erb new file mode 100644 index 000000000..73bfc7b89 --- /dev/null +++ b/app/views/pools/_inline_list.html.erb @@ -0,0 +1,5 @@ +