fixes #1390
This commit is contained in:
@@ -48,13 +48,15 @@
|
||||
|
||||
<% if post.parent_id %>
|
||||
<div class="ui-corner-all ui-state-highlight notice notice-child">
|
||||
This post belongs to a <%= link_to "parent", post_path(post.parent_id) %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
|
||||
This post belongs to a <%= link_to "parent", post_path(post.parent_id) %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>) <%= link_to "show »".html_safe, "#", :id => "child-relationship-preview-link" %>
|
||||
<div id="child-relationship-preview"><%= @child_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">
|
||||
This post has <%= link_to "children", posts_path(:tags => "parent:#{post.id}") %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
|
||||
This post has <%= link_to "children", posts_path(:tags => "parent:#{post.id}") %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>) <%= link_to "show »".html_safe, "#", :id => "parent-relationship-preview-link" %>
|
||||
<div id="parent-relationship-preview"><%= @parent_post_set.presenter.post_previews_html(self) %></div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user