Additionally:
* Rename methods and variables related to the parent/child previews for
consistency.
* Split off siblings into a separate post set.
* Increase limit of children/siblings displayed to max of 200.
This commit is contained in:
Toks
2013-04-29 16:56:54 -04:00
parent aee7bbee0f
commit 4775535c11
4 changed files with 30 additions and 20 deletions

View File

@@ -48,15 +48,15 @@
<% if post.parent_id %>
<div class="ui-corner-all ui-state-highlight notice notice-child">
<%= belongs_to_parent_message(post, @child_post_set) %>
<div id="child-relationship-preview"><%= @child_post_set.presenter.post_previews_html(self) %></div>
<%= has_parent_message(post, @parent_post_set, @siblings_post_set) %>
<div id="has-parent-relationship-preview"><%= @parent_post_set.presenter.post_previews_html(self) %><%= @siblings_post_set.presenter.post_previews_html(self) %></div>
</div>
<% end %>
<% if post.has_children? %>
<div class="ui-corner-all ui-state-highlight notice notice-parent">
<%= has_children_message(post, @parent_post_set) %>
<div id="parent-relationship-preview"><%= @parent_post_set.presenter.post_previews_html(self) %></div>
<%= has_children_message(post, @children_post_set) %>
<div id="has-children-relationship-preview"><%= @children_post_set.presenter.post_previews_html(self) %></div>
</div>
<% end %>