separated pool/post updates; fixed unit tests

This commit is contained in:
albert
2011-03-13 17:49:34 -04:00
parent 4717726217
commit 90a41a334b
13 changed files with 83 additions and 1334 deletions

View File

@@ -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 %>

View 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>

View File

@@ -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">