separated pool/post updates; fixed unit tests
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<li>Subscriptions</li>
|
||||
<li><%= link_to "Changes", post_versions_path %></li>
|
||||
<li>Approvals</li>
|
||||
<li>Moderate</li>
|
||||
<li><%= link_to "Moderate", post_moderation_moderate_path %></li>
|
||||
<li>Help</li>
|
||||
</menu>
|
||||
<% end %>
|
||||
|
||||
5
app/views/posts/partials/show/_pools.html.erb
Normal file
5
app/views/posts/partials/show/_pools.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<ul>
|
||||
<% post.pools.each do |pool| %>
|
||||
<li><span class="ui-icon ui-icon-circle-arrow-w"></span><span class="ui-icon ui-icon-circle-arrow-e"></span> <%= link_to pool_path(pool), pool.name %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
@@ -5,6 +5,13 @@
|
||||
<h1>Search</h1>
|
||||
<%= render :partial => "posts/partials/common/search" %>
|
||||
</section>
|
||||
|
||||
<% if @post.pools.any? %>
|
||||
<section>
|
||||
<h1>Pools</h1>
|
||||
<%= render "posts/partials/show/pools", :locals => {:post => @post} %>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
<section>
|
||||
<h1>Tags</h1>
|
||||
@@ -19,7 +26,7 @@
|
||||
<section>
|
||||
<h1>Options</h1>
|
||||
<%= render :partial => "posts/partials/show/options", :locals => {:post => @post} %>
|
||||
</section>
|
||||
</section>
|
||||
</aside>
|
||||
|
||||
<section id="content">
|
||||
|
||||
Reference in New Issue
Block a user